]> granicus.if.org Git - shadow/commitdiff
* NEWS, src/lastlog.c: Fix regression causing empty reports.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 20 Apr 2009 14:04:48 +0000 (14:04 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 20 Apr 2009 14:04:48 +0000 (14:04 +0000)
ChangeLog
NEWS
src/lastlog.c

index d2005db506bb245d97c186df6eada748ce376385..9a7db38f6efe6616aa293fe43261d7a43050034b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-20  Sven Joachim  <svenjoac@gmx.de>
+
+       * NEWS, src/lastlog.c: Fix regression causing empty reports.
+
 2009-04-20  Nicolas François  <nicolas.francois@centraliens.net>
 
        * src/login.c: Get rid of pwent. pwd is sufficient as long as it
diff --git a/NEWS b/NEWS
index 590881b9b1c16d8e6f6adb0d0c17a8ced57c1afb..108e5d2289004b736469bf5a28521ae4b3397e74 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,8 @@ shadow-4.1.3.1 -> shadow-4.1.3.2                                        UNRELEASED
     lead to DOS attacks.
   * (PAM) Even if the user was already authenticated (-f flag), ask the
     user to update his authentication token if needed.
+- lastlog
+  * Fix regression causing empty reports.
 
 *** translation
  - Updated Korean translation
index 8f08e87f3dc585c2cb17001f735931ffc28c2420..a8ef745ba7a32a8a1e93c83422df206e1c4bc491 100644 (file)
@@ -266,8 +266,7 @@ int main (int argc, char **argv)
                exit (1);
        }
 
-       print ();
-       /* Get the laslog size */
+       /* Get the lastlog size */
        if (fstat (fileno (lastlogfile), &statbuf) != 0) {
                fprintf (stderr,
                         _("lastlog: Cannot get the size of %s: %s\n"),
@@ -275,6 +274,8 @@ int main (int argc, char **argv)
                exit (1);
        }
 
+       print ();
+
        fclose (lastlogfile);
        exit (0);
 }