From c1a1c736a75b08b88b083b78e5ca96c026d8e20a Mon Sep 17 00:00:00 2001 From: bsd Date: Thu, 16 Mar 2000 23:53:41 +0000 Subject: Back out that last commit, it may be insecure (pointed out by Warner Losh). --- lib/libc/net/rcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc') 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; } -- cgit v1.1