Skip to content

Commit

Permalink
Fix typo in readlinkat
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Oct 30, 2009
1 parent 6cfe860 commit de2cc80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/unix/sysv/linux/readlinkat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit de2cc80

Please sign in to comment.