diff options
author | joerg <joerg@FreeBSD.org> | 1995-07-16 10:12:32 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1995-07-16 10:12:32 +0000 |
commit | 694c4272848a2eb83621679c60812e3cbf1df6b2 (patch) | |
tree | 18f3289493abbf2d0bbc6d02cbb5c2ecd478d551 /lib | |
parent | 60e0d03fdfdcb5b2da63a50fc0f6184af1d2e5da (diff) | |
download | FreeBSD-src-694c4272848a2eb83621679c60812e3cbf1df6b2.zip FreeBSD-src-694c4272848a2eb83621679c60812e3cbf1df6b2.tar.gz |
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...
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/net/rcmd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c index 01ceac9..a05ec73 100644 --- a/lib/libc/net/rcmd.c +++ b/lib/libc/net/rcmd.c @@ -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) { |