mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9539
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue