]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove incorrect paring of /proc/stat etc.
authorRyan S. Arnold <rsa@us.ibm.com>
Sun, 4 Apr 2010 02:20:29 +0000 (19:20 -0700)
committerUlrich Drepper <drepper@redhat.com>
Sun, 4 Apr 2010 02:20:29 +0000 (19:20 -0700)
ChangeLog
sysdeps/unix/sysv/linux/getsysstats.c

index dd6b6081140df7bfe4cbd38103132d2a3f584ab9..6420b9df48198d4d33c7e593a97d3807dba77a19 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-03-25  Ryan S. Arnold  <rsa@us.ibm.com>
+
+       * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Remove
+       redundant and incorrect else block which overwrites current line
+       with the partial next line.
+
 2010-04-03  Ulrich Drepper  <drepper@redhat.com>
 
        [BZ #11438]
index 97e20d249bd262658c2b20b16f9ea67d340c5f56..af454b650de92e4910a5196c283ae04050e6e07f 100644 (file)
@@ -1,5 +1,5 @@
 /* Determine various system internal values, Linux version.
-   Copyright (C) 1996-2003, 2006, 2007, 2009 Free Software Foundation, Inc.
+   Copyright (C) 1996-2003,2006,2007,2009,2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -117,18 +117,6 @@ next_line (int fd, char *const buffer, char **cp, char **re,
       if (nl == NULL)
        nl = *re - 1;
     }
-  else if (nl + 5 >= *re)
-    {
-      memmove (buffer, nl, *re - nl);
-      *re = buffer + (*re - nl);
-      nl = *cp = buffer;
-
-      ssize_t n = read_not_cancel (fd, *re, buffer_end - *re);
-      if (n < 0)
-       return NULL;
-
-      *re += n;
-    }
 
   *cp = nl + 1;
   assert (*cp <= *re);