diff options
author | ed <ed@FreeBSD.org> | 2010-01-24 14:29:40 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-01-24 14:29:40 +0000 |
commit | 7d3996ff481a91f864c1644b501e05640f80099d (patch) | |
tree | 8b5a26f11c4008d1b3cbad07a4aa947694e0eb10 /usr.sbin/lastlogin | |
parent | fd0073d8288a4357914fc42e5df40ae0831cddbc (diff) | |
download | FreeBSD-src-7d3996ff481a91f864c1644b501e05640f80099d.zip FreeBSD-src-7d3996ff481a91f864c1644b501e05640f80099d.tar.gz |
Remove unneeded setpassent() calls.
lastlogin no longer requires the use of the passwd database.
Diffstat (limited to 'usr.sbin/lastlogin')
-rw-r--r-- | usr.sbin/lastlogin/lastlogin.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/usr.sbin/lastlogin/lastlogin.c b/usr.sbin/lastlogin/lastlogin.c index 9cc6b9f..a1b5b6e 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); } |