Fix typo in readlinkat

This commit is contained in:
Andreas Schwab 2009-10-30 14:14:31 +01:00
parent 6cfe8609b8
commit de2cc8095b
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View 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;