From 8f26c8ef60204c5520e8a83f49bfa06114252a45 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sun, 16 Jul 1995 10:12:32 +0000 Subject: [PATCH] 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(+) diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c index 01ceac96c7a..a05ec736180 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) {