]> granicus.if.org Git - shadow/commitdiff
* src/lastlog.c: Remove function calls from within assert().
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 24 Apr 2009 23:05:29 +0000 (23:05 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 24 Apr 2009 23:05:29 +0000 (23:05 +0000)
ChangeLog
src/lastlog.c

index cc8bb3f57339635ec7e57938900cb6baab9e4aaf..11673e149eea4e99d18844f11b637f699834fb22 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-25  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * src/lastlog.c: Remove function calls from within assert().
+
 2009-04-25  Nicolas François  <nicolas.francois@centraliens.net>
 
        * libmisc/obscure.c: Change some int to size_t.
index 6203e668e32bdc8c675190dce08ed2844759b6af..9fde16124298766a0132ac4d7240d7b338a82407 100644 (file)
@@ -108,7 +108,8 @@ static void print_one (/*@null@*/const struct passwd *pw)
 
        if (offset <= (statbuf.st_size - sizeof (ll))) {
                /* fseeko errors are not really relevant for us. */
-               assert ( fseeko (lastlogfile, offset, SEEK_SET) == 0 );
+               int err = fseeko (lastlogfile, offset, SEEK_SET);
+               assert (0 == err);
                /* lastlog is a sparse file. Even if no entries were
                 * entered for this user, which should be able to get the
                 * empty entry in this case.