[Pkg-shadow-commits] r2593 - in upstream/trunk: . src
Nicolas FRANCOIS
nekral-guest at alioth.debian.org
Sun Apr 5 22:02:50 UTC 2009
Author: nekral-guest
Date: 2009-04-05 22:02:50 +0000 (Sun, 05 Apr 2009)
New Revision: 2593
Modified:
upstream/trunk/ChangeLog
upstream/trunk/src/useradd.c
Log:
* src/useradd.c: Set errno to 0 before calling strtol.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2009-04-05 22:02:00 UTC (rev 2592)
+++ upstream/trunk/ChangeLog 2009-04-05 22:02:50 UTC (rev 2593)
@@ -1,5 +1,9 @@
2009-04-05 Nicolas François <nicolas.francois at centraliens.net>
+ * src/useradd.c: Set errno to 0 before calling strtol.
+
+2009-04-05 Nicolas François <nicolas.francois at centraliens.net>
+
* libmisc/isexpired.c: If there are no shadow entry, there is no
need to convert the password entry to a shadow entry. The password
is valid.
Modified: upstream/trunk/src/useradd.c
===================================================================
--- upstream/trunk/src/useradd.c 2009-04-05 22:02:00 UTC (rev 2592)
+++ upstream/trunk/src/useradd.c 2009-04-05 22:02:50 UTC (rev 2593)
@@ -286,6 +286,7 @@
long val;
char *endptr;
+ errno = 0;
val = strtol (numstr, &endptr, 10);
if (('\0' == *numstr) || ('\0' != *endptr) || (ERANGE == errno)) {
fprintf (stderr,
More information about the Pkg-shadow-commits
mailing list