[Pkg-shadow-commits] r2131 - in upstream/trunk: . libmisc
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Fri Jun 13 18:17:11 UTC 2008
Author: nekral-guest
Date: 2008-06-13 18:17:10 +0000 (Fri, 13 Jun 2008)
New Revision: 2131
Modified:
upstream/trunk/ChangeLog
upstream/trunk/libmisc/utmp.c
Log:
* libmisc/utmp.c: Avoid implicit conversion of pointers to
booleans
+ add missing changelog from last commit.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2008-06-13 18:11:09 UTC (rev 2130)
+++ upstream/trunk/ChangeLog 2008-06-13 18:17:10 UTC (rev 2131)
@@ -1,3 +1,21 @@
+2008-06-13 Nicolas François <nicolas.francois at centraliens.net>
+
+ * libmisc/utmp.c: Avoid implicit conversion of pointers to
+ booleans
+
+2008-06-13 Nicolas François <nicolas.francois at centraliens.net>
+
+ * libmisc/console.c, libmisc/hushed.c, libmisc/yesno.c,
+ libmisc/loginprompt.c, libmisc/ttytype.c, libmisc/tz.c,
+ src/login_nopam.c, src/chpasswd.c, src/chgpasswd.c, lib/port.c:
+ The size argument of fgets is an int, not a size_t.
+ * libmisc/loginprompt.c: Ignore the return value from signal()
+ when the signal handlers are restored.
+ * src/chpasswd.c: Cast the return value of time() to a long
+ integer.
+ * src/chpasswd.c: Use the SCALE macro instead of (24L * 3600L)
+ for the values to be set in /etc/shadow.
+
2008-06-10 Nicolas François <nicolas.francois at centraliens.net>
* src/pwck.c: Use a bool when possible instead of int integers.
Modified: upstream/trunk/libmisc/utmp.c
===================================================================
--- upstream/trunk/libmisc/utmp.c 2008-06-13 18:11:09 UTC (rev 2130)
+++ upstream/trunk/libmisc/utmp.c 2008-06-13 18:17:10 UTC (rev 2131)
@@ -299,13 +299,13 @@
setutxent ();
setutent ();
- while (utmpx = getutxent ()) {
+ while ((utmpx = getutxent ()) != NULL) {
if (utmpx->ut_pid == pid) {
found_utmpx = true;
break;
}
}
- while (utmp = getutent ()) {
+ while ((utmp = getutent ()) != NULL) {
if (utmp->ut_pid == pid) {
found_utmp = true;
break;
More information about the Pkg-shadow-commits
mailing list