[Pkg-shadow-commits] r2172 - in upstream/trunk: . libmisc
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Fri Jun 13 21:49:58 UTC 2008
Author: nekral-guest
Date: 2008-06-13 21:49:57 +0000 (Fri, 13 Jun 2008)
New Revision: 2172
Modified:
upstream/trunk/ChangeLog
upstream/trunk/libmisc/find_new_ids.c
Log:
* libmisc/find_new_ids.c: Use getdef_ulong to retrieve UIDs/GIDs
from login.defs. Type constants to long integers.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2008-06-13 21:45:47 UTC (rev 2171)
+++ upstream/trunk/ChangeLog 2008-06-13 21:49:57 UTC (rev 2172)
@@ -1,5 +1,10 @@
2008-06-13 Nicolas François <nicolas.francois at centraliens.net>
+ * libmisc/find_new_ids.c: Use getdef_ulong to retrieve UIDs/GIDs
+ from login.defs. Type constants to long integers.
+
+2008-06-13 Nicolas François <nicolas.francois at centraliens.net>
+
* lib/gshadow.c: Use a bool when possible instead of int integers.
* lib/gshadow.c: Remove __setsgNIS() -never used).
* lib/gshadow.c: Avoid multi-statements lines.
Modified: upstream/trunk/libmisc/find_new_ids.c
===================================================================
--- upstream/trunk/libmisc/find_new_ids.c 2008-06-13 21:45:47 UTC (rev 2171)
+++ upstream/trunk/libmisc/find_new_ids.c 2008-06-13 21:49:57 UTC (rev 2172)
@@ -56,12 +56,12 @@
assert (uid != NULL);
if (!sys_user) {
- uid_min = getdef_unum ("UID_MIN", 1000);
- uid_max = getdef_unum ("UID_MAX", 60000);
+ uid_min = getdef_ulong ("UID_MIN", 1000L);
+ uid_max = getdef_ulong ("UID_MAX", 60000L);
} else {
- uid_min = getdef_unum ("SYS_UID_MIN", 1);
- uid_max = getdef_unum ("UID_MIN", 1000) - 1;
- uid_max = getdef_unum ("SYS_UID_MAX", uid_max);
+ uid_min = getdef_ulong ("SYS_UID_MIN", 1L);
+ uid_max = getdef_ulong ("UID_MIN", 1000L) - 1;
+ uid_max = getdef_ulong ("SYS_UID_MAX", (unsigned long) uid_max);
}
if ( (NULL != preferred_uid)
@@ -139,12 +139,12 @@
assert (gid != NULL);
if (!sys_group) {
- gid_min = getdef_unum ("GID_MIN", 1000);
- gid_max = getdef_unum ("GID_MAX", 60000);
+ gid_min = getdef_ulong ("GID_MIN", 1000L);
+ gid_max = getdef_ulong ("GID_MAX", 60000L);
} else {
- gid_min = getdef_unum ("SYS_GID_MIN", 1);
- gid_max = getdef_unum ("GID_MIN", 1000) - 1;
- gid_max = getdef_unum ("SYS_GID_MAX", gid_max);
+ gid_min = getdef_ulong ("SYS_GID_MIN", 1L);
+ gid_max = getdef_ulong ("GID_MIN", 1000L) - 1;
+ gid_max = getdef_ulong ("SYS_GID_MAX", (unsigned long) gid_max);
}
if ( (NULL != preferred_gid)
More information about the Pkg-shadow-commits
mailing list