setup: joinpasswd.c fsync/close after loop.
arekm
arekm at pld-linux.org
Thu Dec 8 20:25:09 CET 2011
Author: arekm Date: Thu Dec 8 19:25:09 2011 GMT
Module: setup Tag: HEAD
---- Log message:
fsync/close after loop.
---- Files affected:
setup:
joinpasswd.c (1.13 -> 1.14)
---- Diffs:
================================================================
Index: setup/joinpasswd.c
diff -u setup/joinpasswd.c:1.13 setup/joinpasswd.c:1.14
--- setup/joinpasswd.c:1.13 Thu Dec 8 11:00:52 2011
+++ setup/joinpasswd.c Thu Dec 8 20:25:04 2011
@@ -332,9 +332,9 @@
}
} else if (i < new_sz)
i++;
- fsync(fd);
- close(fd);
}
+ fsync(fd);
+ close(fd);
#if 0
/* user may want to exime this file... */
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/setup/joinpasswd.c?r1=1.13&r2=1.14&f=u
More information about the pld-cvs-commit
mailing list