diff options
author | 1996-07-20 00:27:15 +0000 | |
---|---|---|
committer | 1996-07-20 00:27:15 +0000 | |
commit | 9983e72c5de0447f7fc18b4bf4691b06eb70e2bc (patch) | |
tree | d5c804c80853f72006f1fa0e5869940f8ce095d8 /lib/libc/net/rcmd.c | |
parent | comment out a nasty line (diff) | |
download | wireguard-openbsd-9983e72c5de0447f7fc18b4bf4691b06eb70e2bc.tar.xz wireguard-openbsd-9983e72c5de0447f7fc18b4bf4691b06eb70e2bc.zip |
support # comments
Diffstat (limited to 'lib/libc/net/rcmd.c')
-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 b7877635941..214cd2792a4 100644 --- a/lib/libc/net/rcmd.c +++ b/lib/libc/net/rcmd.c @@ -378,6 +378,8 @@ __ivaliduser(hostf, raddrl, luser, ruser) ; continue; } + if (*p == '#') + continue; while (*p != '\n' && *p != ' ' && *p != '\t' && *p != '\0') { *p = isupper(*p) ? tolower(*p) : *p; p++; |