* NEWS, src/lastlog.c: Fix regression causing empty reports.
This commit is contained in:
1 parent
18fdfee274
commit
9efd6a53d2
3 files changed
+9
-2
No files matched your search
+3
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user