aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/lastlogin/lastlogin.c
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2010-01-24 14:29:40 +0000
committerEd Schouten <ed@FreeBSD.org>2010-01-24 14:29:40 +0000
commit3c247358feb9691f8d35b0d9037a3fd0d9089ac1 (patch)
tree8b5a26f11c4008d1b3cbad07a4aa947694e0eb10 /usr.sbin/lastlogin/lastlogin.c
parent629b054a6333863520e84cff8c0b27a0e6c78c29 (diff)
downloadsrc-3c247358feb9691f8d35b0d9037a3fd0d9089ac1.tar.gz
src-3c247358feb9691f8d35b0d9037a3fd0d9089ac1.zip
Remove unneeded setpassent() calls.
lastlogin no longer requires the use of the passwd database.
Notes
Notes: svn path=/head/; revision=202928
Diffstat (limited to 'usr.sbin/lastlogin/lastlogin.c')
-rw-r--r--usr.sbin/lastlogin/lastlogin.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/usr.sbin/lastlogin/lastlogin.c b/usr.sbin/lastlogin/lastlogin.c
index 9cc6b9f3255a..a1b5b6ea63be 100644
--- a/usr.sbin/lastlogin/lastlogin.c
+++ b/usr.sbin/lastlogin/lastlogin.c
@@ -37,7 +37,6 @@ __RCSID("$NetBSD: lastlogin.c,v 1.4 1998/02/03 04:45:35 perry Exp $");
#endif
#include <err.h>
-#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
@@ -58,8 +57,6 @@ main(int argc, char *argv[])
usage();
}
- setpassent(1); /* Keep passwd file pointers open */
-
/* Process usernames given on the command line. */
if (argc > 1) {
for (i = 1; i < argc; ++i) {
@@ -85,7 +82,6 @@ main(int argc, char *argv[])
endutxent();
}
- setpassent(0); /* Close passwd file pointers */
exit(0);
}