[Pkg-shadow-commits] r2728 - in upstream/trunk: . src

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Mon Apr 20 14:04:49 UTC 2009


Author: nekral-guest
Date: 2009-04-20 14:04:48 +0000 (Mon, 20 Apr 2009)
New Revision: 2728

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/NEWS
   upstream/trunk/src/lastlog.c
Log:
	* NEWS, src/lastlog.c: Fix regression causing empty reports.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2009-04-20 13:29:15 UTC (rev 2727)
+++ upstream/trunk/ChangeLog	2009-04-20 14:04:48 UTC (rev 2728)
@@ -1,3 +1,7 @@
+2009-04-20  Sven Joachim  <svenjoac at gmx.de>
+
+	* NEWS, src/lastlog.c: Fix regression causing empty reports.
+
 2009-04-20  Nicolas François  <nicolas.francois at centraliens.net>
 
 	* src/login.c: Get rid of pwent. pwd is sufficient as long as it

Modified: upstream/trunk/NEWS
===================================================================
--- upstream/trunk/NEWS	2009-04-20 13:29:15 UTC (rev 2727)
+++ upstream/trunk/NEWS	2009-04-20 14:04:48 UTC (rev 2728)
@@ -7,6 +7,8 @@
     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

Modified: upstream/trunk/src/lastlog.c
===================================================================
--- upstream/trunk/src/lastlog.c	2009-04-20 13:29:15 UTC (rev 2727)
+++ upstream/trunk/src/lastlog.c	2009-04-20 14:04:48 UTC (rev 2728)
@@ -266,8 +266,7 @@
 		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 @@
 		exit (1);
 	}
 
+	print ();
+
 	fclose (lastlogfile);
 	exit (0);
 }




More information about the Pkg-shadow-commits mailing list