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:
ache 1995-06-21 23:54:43 +00:00
parent cd236828a0
commit 0f4b3165a0

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