From 694c4272848a2eb83621679c60812e3cbf1df6b2 Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 16 Jul 1995 10:12:32 +0000 Subject: 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... --- lib/libc/net/rcmd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libc') 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) { -- cgit v1.1