[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ SEMANAGE 2 ] Fix bug in dbase_file_flush
This patch fixes a bug in the file flush function.
Applies on top of the large patch I sent earlier.
diff -Naurp --exclude CVS --exclude ChangeLog --exclude VERSION --exclude 'module_record*' --exclude 'database_directory*' --exclude Makefile old/libsemanage/src/database_file.c new/libsemanage/src/database_file.c
--- old/libsemanage/src/database_file.c 2005-10-31 01:48:29.000000000 -0500
+++ new/libsemanage/src/database_file.c 2005-10-31 01:50:30.000000000 -0500
@@ -180,7 +180,7 @@ static int dbase_file_flush(
if (!dbase->modified || !dbase->cached)
return STATUS_SUCCESS;
- if (!construct_filename(handle, dbase, &fname) < 0)
+ if (construct_filename(handle, dbase, &fname) < 0)
goto err;
str = fopen(fname, "w");
This mailing list archive is a service of Copilot Consulting.