Should've gone with 

        revision 1.95
        date: 2018/09/16 02:44:06;  author: millert;  state: Exp;  lines: +10 
-5;
        Use uid_from_user(3) and gid_from_group(3) in utilities that
        do repeated lookups.  OK tb@

OK?

Index: fstat.c
===================================================================
RCS file: /cvs/src/usr.bin/fstat/fstat.c,v
retrieving revision 1.101
diff -u -p -r1.101 fstat.c
--- fstat.c     22 Aug 2020 18:34:29 -0000      1.101
+++ fstat.c     17 Jul 2021 03:46:31 -0000
@@ -142,7 +142,6 @@ hide(void *p)
 int
 main(int argc, char *argv[])
 {
-       struct passwd *passwd;
        struct kinfo_file *kf, *kflast;
        int ch;
        char *memf, *nlistf, *optstr;
@@ -163,9 +162,6 @@ main(int argc, char *argv[])
                fuser = 0;
                optstr = "fnop:su:vN:M:";
        }
-
-       /* Keep passwd file open for faster lookups. */
-       setpassent(1);
 
        /*
         * fuser and fstat share three flags: -f, -s and -u.  In both cases

Reply via email to