diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/readlinkat.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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; |