Do not allow `finger -m /somefile' as well.
This commit is contained in:
parent
253315a5a3
commit
0272ef9b3e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66675
@ -333,11 +333,11 @@ userlist(argc, argv)
|
||||
* gathering the traditional finger information.
|
||||
*/
|
||||
if (mflag)
|
||||
for (p = argv; *p; ++p) {
|
||||
if (**p != '/' || !show_text("", *p, "")) {
|
||||
for (p = argv, ip = used; *p; ++p, ++ip) {
|
||||
if (**p != '/' || *ip == 1 || !show_text("", *p, "")) {
|
||||
if (((pw = getpwnam(*p)) != NULL) && !hide(pw))
|
||||
enter_person(pw);
|
||||
else
|
||||
else if (!*ip)
|
||||
warnx("%s: no such user", *p);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user