Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 27 Oct 2003 08:44:53 +0000 (08:44 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 27 Oct 2003 08:44:53 +0000 (08:44 +0000)
2003-10-27  Ulrich Drepper  <drepper@redhat.com>

* inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
rest of line.  We use getline which means this cannot happen.

ChangeLog
inet/rcmd.c

index 14d5e31..4c3e8a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-27  Ulrich Drepper  <drepper@redhat.com>
+
+       * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
+       rest of line.  We use getline which means this cannot happen.
+
 2003-10-26  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs):
index ad72108..d9645a3 100644 (file)
@@ -848,15 +848,6 @@ __validuser2_sa(hostf, ra, ralen, luser, ruser, rhost)
            continue;
        }
 
-       /* Skip lines that are too long. */
-       if (strchr (p, '\n') == NULL) {
-           int ch = getc_unlocked (hostf);
-
-           while (ch != '\n' && ch != EOF)
-               ch = getc_unlocked (hostf);
-           continue;
-       }
-
        for (;*p && !isspace(*p); ++p) {
            *p = _tolower (*p);
        }