aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/finger/finger.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1995-06-21 23:54:43 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1995-06-21 23:54:43 +0000
commitc2ac9540cda95e9962c5157f5dee91fd0eb3e40e (patch)
treedab1b46862bd398e5d895248315c84348b3e0ac9 /usr.bin/finger/finger.c
parent43bed81d643fe98900cc450840d6c4d73ec6925b (diff)
Fix finger not check all users ~/.nofinger, only for actually
matched. Close PR 539 Submitted by: tom@haven.uniserve.com
Notes
Notes: svn path=/head/; revision=9280
Diffstat (limited to 'usr.bin/finger/finger.c')
-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 3305e9f91d75..bae5fe7e6807 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;
}