From c2ac9540cda95e9962c5157f5dee91fd0eb3e40e Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Wed, 21 Jun 1995 23:54:43 +0000 Subject: [PATCH] Fix finger not check all users ~/.nofinger, only for actually matched. Close PR 539 Submitted by: tom@haven.uniserve.com --- usr.bin/finger/finger.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr.bin/finger/finger.c b/usr.bin/finger/finger.c index 3305e9f91d7..bae5fe7e680 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; }