* NEWS, src/lastlog.c: Fix regression causing empty reports.

This commit is contained in:
nekral-guest 2009-04-20 14:04:48 +00:00
parent 18fdfee274
commit 9efd6a53d2
3 changed files with 9 additions and 2 deletions

View File

@ -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> 2009-04-20 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: Get rid of pwent. pwd is sufficient as long as it * src/login.c: Get rid of pwent. pwd is sufficient as long as it

2
NEWS
View File

@ -7,6 +7,8 @@ shadow-4.1.3.1 -> shadow-4.1.3.2 UNRELEASED
lead to DOS attacks. lead to DOS attacks.
* (PAM) Even if the user was already authenticated (-f flag), ask the * (PAM) Even if the user was already authenticated (-f flag), ask the
user to update his authentication token if needed. user to update his authentication token if needed.
- lastlog
* Fix regression causing empty reports.
*** translation *** translation
- Updated Korean translation - Updated Korean translation

View File

@ -266,8 +266,7 @@ int main (int argc, char **argv)
exit (1); exit (1);
} }
print (); /* Get the lastlog size */
/* Get the laslog size */
if (fstat (fileno (lastlogfile), &statbuf) != 0) { if (fstat (fileno (lastlogfile), &statbuf) != 0) {
fprintf (stderr, fprintf (stderr,
_("lastlog: Cannot get the size of %s: %s\n"), _("lastlog: Cannot get the size of %s: %s\n"),
@ -275,6 +274,8 @@ int main (int argc, char **argv)
exit (1); exit (1);
} }
print ();
fclose (lastlogfile); fclose (lastlogfile);
exit (0); exit (0);
} }