Fix typo in readlinkat
authorAndreas Schwab <schwab@redhat.com>
Fri, 30 Oct 2009 13:14:31 +0000 (14:14 +0100)
committerAndreas Schwab <schwab@redhat.com>
Fri, 30 Oct 2009 13:18:18 +0000 (14:18 +0100)
ChangeLog
sysdeps/unix/sysv/linux/readlinkat.c

index 7a6136b..6562469 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-10-30  Andreas Schwab  <schwab@redhat.com>
+
+       * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
+
 2009-10-28  Roland McGrath  <roland@redhat.com>
 
        * Makefile (dist-prepare): New target.
index 1e9a9b6..55abff1 100644 (file)
@@ -59,7 +59,7 @@ readlinkat (fd, path, buf, len)
   if (fd != AT_FDCWD && path[0] != '/')
     {
       size_t pathlen = strlen (path);
-      if (__builtin_expect (filelen == 0, 0))
+      if (__builtin_expect (pathlen == 0, 0))
        {
          __set_errno (ENOENT);
          return -1;