]> granicus.if.org Git - shadow/commitdiff
* src/logoutd.c: Ignore return value of time() when use with a
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 13 Jun 2008 20:34:46 +0000 (20:34 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 13 Jun 2008 20:34:46 +0000 (20:34 +0000)
non NULL argument.

ChangeLog
src/logoutd.c

index 985f516a63b7105fe9664b819077f43c14d1b969..a1a414ef426ab541b81d2cba35389dfe2a72d257 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-13  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * src/logoutd.c: Ignore return value of time() when use with a
+       non NULL argument.
+
 2008-06-13  Nicolas François  <nicolas.francois@centraliens.net>
 
        * src/pwconv.c: Use SHADOW_SP_FLAG_UNSET for the initial
index e00af4b66daa874e0de919286a22ffa01a3506ce..6a54ceaf95de4d7c077b60d2f9053919d0445e98 100644 (file)
@@ -77,7 +77,7 @@ static int check_login (const struct utmp *ut)
        strncpy (user, ut->ut_user, sizeof (ut->ut_user));
        user[sizeof (ut->ut_user)] = '\0';
 
-       time (&now);
+       (void) time (&now);
 
        /*
         * Check if they are allowed to be logged in right now.