Make ruserok() accept the #-starting comment lines we used to have
in our default /etc/hosts.equiv. Closes PR #conf/620: Default /etc/hosts.equiv...
This commit is contained in:
parent
1be9be9647
commit
8f26c8ef60
@ -366,6 +366,8 @@ __ivaliduser(hostf, raddr, luser, ruser)
|
||||
return (-1);
|
||||
|
||||
while (fgets(buf, sizeof(buf), hostf)) {
|
||||
if(buf[0] == '#')
|
||||
continue;
|
||||
p = buf;
|
||||
/* Skip lines that are too long. */
|
||||
if (strchr(p, '\n') == NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user