[Pkg-shadow-commits] r2771 - in upstream/trunk: . lib
Nicolas FRANÇOIS
nekral-guest at alioth.debian.org
Thu Apr 23 11:46:06 UTC 2009
Author: nekral-guest
Date: 2009-04-23 11:46:06 +0000 (Thu, 23 Apr 2009)
New Revision: 2771
Modified:
upstream/trunk/ChangeLog
upstream/trunk/lib/get_gid.c
upstream/trunk/lib/get_uid.c
Log:
* lib/get_gid.c: gidstr should not be NULL, but the check was
meant to make sure it is not empty.
* lib/get_uid.c: Likewise.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2009-04-23 11:23:53 UTC (rev 2770)
+++ upstream/trunk/ChangeLog 2009-04-23 11:46:06 UTC (rev 2771)
@@ -1,5 +1,17 @@
2009-04-22 Nicolas François <nicolas.francois at centraliens.net>
+ * lib/get_gid.c: gidstr should not be NULL, but the check was
+ meant to make sure it is not empty.
+ * lib/get_uid.c: Likewise.
+
+2009-04-22 Nicolas François <nicolas.francois at centraliens.net>
+
+ * lib/getdef.c: Added splint annotations.
+ * lib/getdef.c: Ignore fputs() return value.
+ * lib/getdef.c: Use EXIT_FAILURE / EXIT_SUCCESS for exit()
+
+2009-04-22 Nicolas François <nicolas.francois at centraliens.net>
+
* src/faillog.c: Added splint annotations.
* src/faillog.c: Cast ID to ulongs and use ulong formats for IDs.
* src/faillog.c: Ignore fflush() return value.
Modified: upstream/trunk/lib/get_gid.c
===================================================================
--- upstream/trunk/lib/get_gid.c 2009-04-23 11:23:53 UTC (rev 2770)
+++ upstream/trunk/lib/get_gid.c 2009-04-23 11:46:06 UTC (rev 2771)
@@ -41,7 +41,7 @@
errno = 0;
val = strtoll (gidstr, &endptr, 10);
- if ( ('\0' == gidstr)
+ if ( ('\0' == *gidstr)
|| ('\0' != *endptr)
|| (ERANGE == errno)
|| (val != (gid_t)val)) {
Modified: upstream/trunk/lib/get_uid.c
===================================================================
--- upstream/trunk/lib/get_uid.c 2009-04-23 11:23:53 UTC (rev 2770)
+++ upstream/trunk/lib/get_uid.c 2009-04-23 11:46:06 UTC (rev 2771)
@@ -41,7 +41,7 @@
errno = 0;
val = strtoll (uidstr, &endptr, 10);
- if ( ('\0' == uidstr)
+ if ( ('\0' == *uidstr)
|| ('\0' != *endptr)
|| (ERANGE == errno)
|| (val != (uid_t)val)) {
More information about the Pkg-shadow-commits
mailing list