aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/unix/sysv/linux/readlinkat.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7a6136b73e..6562469777 100644
--- 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.
diff --git a/sysdeps/unix/sysv/linux/readlinkat.c b/sysdeps/unix/sysv/linux/readlinkat.c
index 1e9a9b649f..55abff143d 100644
--- a/sysdeps/unix/sysv/linux/readlinkat.c
+++ b/sysdeps/unix/sysv/linux/readlinkat.c
@@ -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;