mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Fix typo in readlinkat
This commit is contained in:
@@ -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>
|
2009-10-28 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
* Makefile (dist-prepare): New target.
|
* Makefile (dist-prepare): New target.
|
||||||
|
@@ -59,7 +59,7 @@ readlinkat (fd, path, buf, len)
|
|||||||
if (fd != AT_FDCWD && path[0] != '/')
|
if (fd != AT_FDCWD && path[0] != '/')
|
||||||
{
|
{
|
||||||
size_t pathlen = strlen (path);
|
size_t pathlen = strlen (path);
|
||||||
if (__builtin_expect (filelen == 0, 0))
|
if (__builtin_expect (pathlen == 0, 0))
|
||||||
{
|
{
|
||||||
__set_errno (ENOENT);
|
__set_errno (ENOENT);
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user