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:
parent
bd79f8422f
commit
9c8e9b4a14
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58152
@ -562,7 +562,7 @@ __ivaliduser_af(hostf, raddr, luser, ruser, af, len)
|
|||||||
while (fgets(buf, sizeof(buf), hostf)) {
|
while (fgets(buf, sizeof(buf), hostf)) {
|
||||||
p = buf;
|
p = buf;
|
||||||
/* Skip lines that are too long. */
|
/* 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);
|
while ((ch = getc(hostf)) != '\n' && ch != EOF);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user