Date: Sun, 24 Jan 2010 14:29:40 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r202928 - head/usr.sbin/lastlogin Message-ID: <201001241429.o0OETend054878@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ed Date: Sun Jan 24 14:29:40 2010 New Revision: 202928 URL: http://svn.freebsd.org/changeset/base/202928 Log: Remove unneeded setpassent() calls. lastlogin no longer requires the use of the passwd database. Modified: head/usr.sbin/lastlogin/lastlogin.c Modified: head/usr.sbin/lastlogin/lastlogin.c ============================================================================== --- head/usr.sbin/lastlogin/lastlogin.c Sun Jan 24 14:13:56 2010 (r202927) +++ head/usr.sbin/lastlogin/lastlogin.c Sun Jan 24 14:29:40 2010 (r202928) @@ -37,7 +37,6 @@ __RCSID("$NetBSD: lastlogin.c,v 1.4 1998 #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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001241429.o0OETend054878>