[Pkg-shadow-commits] r2781 - in upstream/trunk: . src
Nicolas FRANÇOIS
nekral-guest at alioth.debian.org
Thu Apr 23 20:39:29 UTC 2009
Author: nekral-guest
Date: 2009-04-23 20:39:29 +0000 (Thu, 23 Apr 2009)
New Revision: 2781
Modified:
upstream/trunk/ChangeLog
upstream/trunk/src/groupmod.c
Log:
* src/groupmod.c: Cast ID to ulongs and use ulong formats for IDs.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2009-04-23 20:37:00 UTC (rev 2780)
+++ upstream/trunk/ChangeLog 2009-04-23 20:39:29 UTC (rev 2781)
@@ -1,5 +1,9 @@
2009-04-22 Nicolas François <nicolas.francois at centraliens.net>
+ * src/groupmod.c: Cast ID to ulongs and use ulong formats for IDs.
+
+2009-04-22 Nicolas François <nicolas.francois at centraliens.net>
+
* src/newgrp.c: Added splint annotations.
* src/newgrp.c: audit_buf is only used in newgrp. Make it static.
* src/newgrp.c: Ignore the return value of fputs().
Modified: upstream/trunk/src/groupmod.c
===================================================================
--- upstream/trunk/src/groupmod.c 2009-04-23 20:37:00 UTC (rev 2780)
+++ upstream/trunk/src/groupmod.c 2009-04-23 20:39:29 UTC (rev 2781)
@@ -505,13 +505,13 @@
+ strlen (info_passwd.audit_msg);
snprintf (info_group.action, 511 - strlen (info_group.audit_msg),
- "group %s/%d", group_name, group_id);
+ "group %s/%lu", group_name, (unsigned long int) group_id);
#ifdef SHADOWGRP
snprintf (info_gshadow.action, 511 - strlen (info_group.audit_msg),
"group %s", group_name);
#endif
snprintf (info_passwd.action, 511 - strlen (info_group.audit_msg),
- "group %s/%d", group_name, group_id);
+ "group %s/%lu", group_name, (unsigned long int) group_id);
if (nflg) {
strncat (info_group.action, ", new name: ",
@@ -545,13 +545,13 @@
511 - strlen (info_group.audit_msg));
snprintf (info_group.action+strlen (info_group.action),
511 - strlen (info_group.audit_msg),
- "%d", group_newid);
+ "%lu", (unsigned long int) group_newid);
strncat (info_passwd.action, ", new gid: ",
511 - strlen (info_passwd.audit_msg));
snprintf (info_passwd.action+strlen (info_passwd.action),
511 - strlen (info_passwd.audit_msg),
- "%d", group_newid);
+ "%lu", (unsigned long int) group_newid);
}
info_group.audit_msg[511] = '\0';
#ifdef SHADOWGRP
More information about the Pkg-shadow-commits
mailing list