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:
Joerg Wunsch 1995-07-16 10:12:32 +00:00
parent 1be9be9647
commit 8f26c8ef60
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9539

View file

@ -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) {