summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1995-07-16 10:12:32 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1995-07-16 10:12:32 +0000
commit8f26c8ef60204c5520e8a83f49bfa06114252a45 (patch)
tree18f3289493abbf2d0bbc6d02cbb5c2ecd478d551 /lib/libc
parent1be9be96474849669d392668d069886fde6efa74 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/rcmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c
index 01ceac96c7a0..a05ec736180b 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) {