From: kn Date: Sat, 17 Jul 2021 20:46:02 +0000 (+0000) Subject: Remove setpassent(3) leftovers X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=271c4dff4e2dbecf90cf444786afbf3eacb6be02;p=openbsd Remove setpassent(3) leftovers Those should have gone with the switch to uid_from_user(3) in r1.95; OK millert --- diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c index 60316e17056..10128c38944 100644 --- a/usr.bin/fstat/fstat.c +++ b/usr.bin/fstat/fstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fstat.c,v 1.101 2020/08/22 18:34:29 millert Exp $ */ +/* $OpenBSD: fstat.c,v 1.102 2021/07/17 20:46:02 kn Exp $ */ /* * Copyright (c) 2009 Todd C. Miller @@ -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; @@ -164,9 +163,6 @@ main(int argc, char *argv[]) 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 * -f is a boolean, but for -u fstat wants an argument while fuser