All of lore.kernel.org
 help / color / mirror / Atom feed
* [ SEMANAGE 2 ] Fix bug in dbase_file_flush
@ 2005-10-31  6:53 Ivan Gyurdiev
  0 siblings, 0 replies; only message in thread
From: Ivan Gyurdiev @ 2005-10-31  6:53 UTC (permalink / raw)
  To: SELinux List; +Cc: Stephen Smalley

[-- Attachment #1: Type: text/plain, Size: 102 bytes --]

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


[-- Attachment #2: libsemanage.fix_flush.diff --]
[-- Type: text/x-patch, Size: 634 bytes --]

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");

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-31  6:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-31  6:53 [ SEMANAGE 2 ] Fix bug in dbase_file_flush Ivan Gyurdiev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.