From 7d3996ff481a91f864c1644b501e05640f80099d Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 24 Jan 2010 14:29:40 +0000 Subject: Remove unneeded setpassent() calls. lastlogin no longer requires the use of the passwd database. --- usr.sbin/lastlogin/lastlogin.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'usr.sbin/lastlogin') 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 -#include #include #include #include @@ -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); } -- cgit v1.1