[Pkg-shadow-commits] r2373 - in upstream/trunk: . lib
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Sat Sep 13 11:55:52 UTC 2008
Author: nekral-guest
Date: 2008-09-13 11:55:50 +0000 (Sat, 13 Sep 2008)
New Revision: 2373
Modified:
upstream/trunk/ChangeLog
upstream/trunk/lib/commonio.c
Log:
* lib/commonio.c: Ignore the return value of umask() when the mask
is set to the old value.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2008-09-13 11:55:41 UTC (rev 2372)
+++ upstream/trunk/ChangeLog 2008-09-13 11:55:50 UTC (rev 2373)
@@ -1,3 +1,8 @@
+2008-09-13 Nicolas François <nicolas.francois at centraliens.net>
+
+ * lib/commonio.c: Ignore the return value of umask() when the mask
+ is set to the old value.
+
2008-09-11 Nicolas François <nicolas.francois at centraliens.net>
* NEWS, etc/login.defs: New CREATE_HOME variable to tell useradd
Modified: upstream/trunk/lib/commonio.c
===================================================================
--- upstream/trunk/lib/commonio.c 2008-09-13 11:55:41 UTC (rev 2372)
+++ upstream/trunk/lib/commonio.c 2008-09-13 11:55:50 UTC (rev 2373)
@@ -186,7 +186,7 @@
mask = umask (0777);
fp = fopen (name, mode);
- umask (mask);
+ (void) umask (mask);
if (NULL == fp) {
return NULL;
}
@@ -233,7 +233,7 @@
mask = umask (077);
bkfp = fopen (backup, "w");
- umask (mask);
+ (void) umask (mask);
if (NULL == bkfp) {
return -1;
}
More information about the Pkg-shadow-commits
mailing list