diff --git a/ChangeLog b/ChangeLog index 0588a8d7..783e6c3f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-26 Nicolas François + + * libmisc/age.c: Avoid implicit conversion of integers to + booleans. + 2008-05-26 Nicolas François * libmisc/rlogin.c: Avoid assignments in comparisons. diff --git a/libmisc/age.c b/libmisc/age.c index 14609029..440636e0 100644 --- a/libmisc/age.c +++ b/libmisc/age.c @@ -123,7 +123,7 @@ int expire (const struct passwd *pw, const struct spwd *sp) * passwd to work just like it would had they executed * it from the command line while logged in. */ - if (setup_uid_gid (pw, 0)) + if (setup_uid_gid (pw, 0) != 0) _exit (126); execl (PASSWD_PROGRAM, PASSWD_PROGRAM, pw->pw_name, (char *) 0);