summaryrefslogtreecommitdiffstats
path: root/usr.bin/finger
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-06-21 23:54:43 +0000
committerache <ache@FreeBSD.org>1995-06-21 23:54:43 +0000
commit0f4b3165a0f1b112d26ab2845482c29b2a0552c6 (patch)
treedab1b46862bd398e5d895248315c84348b3e0ac9 /usr.bin/finger
parentcd236828a082c9c893174c88145505fd251fd192 (diff)
downloadFreeBSD-src-0f4b3165a0f1b112d26ab2845482c29b2a0552c6.zip
FreeBSD-src-0f4b3165a0f1b112d26ab2845482c29b2a0552c6.tar.gz
Fix finger not check all users ~/.nofinger, only for actually
matched. Close PR 539 Submitted by: tom@haven.uniserve.com
Diffstat (limited to 'usr.bin/finger')
-rw-r--r--usr.bin/finger/finger.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/finger/finger.c b/usr.bin/finger/finger.c
index 3305e9f..bae5fe7 100644
--- a/usr.bin/finger/finger.c
+++ b/usr.bin/finger/finger.c
@@ -261,10 +261,8 @@ userlist(argc, argv)
"finger: %s: no such user\n", *p);
else {
while (pw = getpwent()) {
- if (hide (pw))
- continue;
for (p = argv, ip = used; *p; ++p, ++ip)
- if (match(pw, *p)) {
+ if (match(pw, *p) && !hide(pw)) {
enter_person(pw);
*ip = 1;
}
OpenPOWER on IntegriCloud