1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

Slight adjustment to __ivaliduser() - don't ignore the last line in

the .rhosts file just because there is no ending linefeed.
This commit is contained in:
Brian S. Dean 2000-03-16 22:58:34 +00:00
parent bd79f8422f
commit 9c8e9b4a14
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58152

View File

@ -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;
}