diff options
Diffstat (limited to 'sysdeps/generic/openat64.c')
-rw-r--r-- | sysdeps/generic/openat64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/openat64.c b/sysdeps/generic/openat64.c index 82575df399..87952d38d6 100644 --- a/sysdeps/generic/openat64.c +++ b/sysdeps/generic/openat64.c @@ -39,7 +39,7 @@ openat64 (fd, file, oflag) return -1; } - if (file[0] != '/') + if (fd != AT_FDCWD && file[0] != '/') { /* Check FD is associated with a directory. */ struct stat64 st; |