[Pkg-shadow-commits] r2575 - in upstream/trunk: . src

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Sat Mar 21 19:28:02 UTC 2009


Author: nekral-guest
Date: 2009-03-21 19:28:02 +0000 (Sat, 21 Mar 2009)
New Revision: 2575

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/src/vipw.c
Log:
	* src/vipw.c: Likewise for the backup file.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2009-03-21 19:25:02 UTC (rev 2574)
+++ upstream/trunk/ChangeLog	2009-03-21 19:28:02 UTC (rev 2575)
@@ -5,6 +5,7 @@
 	* src/useradd.c: Likewise for the default file, faillog, lastlog,
 	and mail spool.
 	* src/usermod.c: Likewise for the faillog and lastlog file.
+	* src/vipw.c: Likewise for the backup file.
 
 2009-03-15  Nicolas François  <nicolas.francois at centraliens.net>
 

Modified: upstream/trunk/src/vipw.c
===================================================================
--- upstream/trunk/src/vipw.c	2009-03-21 19:25:02 UTC (rev 2574)
+++ upstream/trunk/src/vipw.c	2009-03-21 19:28:02 UTC (rev 2575)
@@ -112,7 +112,8 @@
 		unlink (backup);
 		return -1;
 	}
-	if (fclose (bkfp) != 0) {
+	if (   (fsync (fileno (bkfp)) != 0)
+	    || (fclose (bkfp) != 0)) {
 		unlink (backup);
 		return -1;
 	}




More information about the Pkg-shadow-commits mailing list