diff options
author | ache <ache@FreeBSD.org> | 1995-06-21 23:54:43 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-06-21 23:54:43 +0000 |
commit | 0f4b3165a0f1b112d26ab2845482c29b2a0552c6 (patch) | |
tree | dab1b46862bd398e5d895248315c84348b3e0ac9 /usr.bin/finger | |
parent | cd236828a082c9c893174c88145505fd251fd192 (diff) | |
download | FreeBSD-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.c | 4 |
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; } |