From: Andreas Schwab Date: Fri, 30 Oct 2009 13:14:31 +0000 (+0100) Subject: Fix typo in readlinkat X-Git-Tag: upstream/2.30~13227 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de2cc8095bf7fa4202d0d4c038c8be61dc60fd41;p=external%2Fglibc.git Fix typo in readlinkat --- diff --git a/ChangeLog b/ChangeLog index 7a6136b..6562469 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-10-30 Andreas Schwab + + * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change. + 2009-10-28 Roland McGrath * Makefile (dist-prepare): New target. diff --git a/sysdeps/unix/sysv/linux/readlinkat.c b/sysdeps/unix/sysv/linux/readlinkat.c index 1e9a9b6..55abff1 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;