about summary refs log tree commit diff
path: root/sysdeps/generic/openat64.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/openat64.c')
-rw-r--r--sysdeps/generic/openat64.c2
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;