Skip to contentSkip to conversation

Fix bug in dbase_file_flush

SEMANAGE 2 Ivan Gyurdiev 1 participant 1 message Oct 31, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

This patch fixes a bug in the file flush function. Applies on top of the large patch I sent earlier.

libsemanage/src/database_file.c +1 -1
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
@@ -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");