diff options
Diffstat (limited to 'lib/libc/net/rcmd.c')
-rw-r--r-- | lib/libc/net/rcmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c index af8fc30..5bbef4b 100644 --- a/lib/libc/net/rcmd.c +++ b/lib/libc/net/rcmd.c @@ -562,7 +562,7 @@ __ivaliduser_af(hostf, raddr, luser, ruser, af, len) while (fgets(buf, sizeof(buf), hostf)) { p = buf; /* Skip lines that are too long. */ - if (strchr(p, '\n') == NULL && !feof(hostf)) { + if (strchr(p, '\n') == NULL) { while ((ch = getc(hostf)) != '\n' && ch != EOF); continue; } |