Fix finger not check all users ~/.nofinger, only for actually

matched. Close PR 539
Submitted by: tom@haven.uniserve.com
This commit is contained in:
Andrey A. Chernov 1995-06-21 23:54:43 +00:00
parent 43bed81d64
commit c2ac9540cd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9280

View File

@ -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;
}