diff options
author | bsd <bsd@FreeBSD.org> | 2000-03-16 22:58:34 +0000 |
---|---|---|
committer | bsd <bsd@FreeBSD.org> | 2000-03-16 22:58:34 +0000 |
commit | bf05d34440bf23f33f292b6ea372b496706ef652 (patch) | |
tree | 9ad8ca32efef433609811171e00b0e2d4a4e09d1 /lib/libc | |
parent | 70a58ec38a2490ba26d8b40f80ffa066386b7539 (diff) | |
download | FreeBSD-src-bf05d34440bf23f33f292b6ea372b496706ef652.zip FreeBSD-src-bf05d34440bf23f33f292b6ea372b496706ef652.tar.gz |
Slight adjustment to __ivaliduser() - don't ignore the last line in
the .rhosts file just because there is no ending linefeed.
Diffstat (limited to 'lib/libc')
-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 5bbef4b..af8fc30 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) { + if (strchr(p, '\n') == NULL && !feof(hostf)) { while ((ch = getc(hostf)) != '\n' && ch != EOF); continue; } |