diff options
author | kn <kn@cvs.openbsd.org> | 2021-07-17 20:46:03 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2021-07-17 20:46:03 +0000 |
commit | 8714edf194d5a48bb4c58e0f0b42faaf6b65491f (patch) | |
tree | 4ef48014f64e92ab038cdd9eae47d21c1d8c1847 /usr.bin | |
parent | 4bb99388098c0a86bf01d534da371d3cbbb33d42 (diff) |
Remove setpassent(3) leftovers
Those should have gone with the switch to uid_from_user(3) in r1.95;
OK millert
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/fstat/fstat.c | 6 |
1 files changed, 1 insertions, 5 deletions
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 <millert@openbsd.org> @@ -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 |