diff options
Diffstat (limited to 'sysdeps/posix/opendir.c')
-rw-r--r-- | sysdeps/posix/opendir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/opendir.c b/sysdeps/posix/opendir.c index d925804e89..e65a09c1a2 100644 --- a/sysdeps/posix/opendir.c +++ b/sysdeps/posix/opendir.c @@ -197,7 +197,7 @@ __alloc_dir (int fd, bool close_fd, int flags, const struct stat64 *statp) /* We have to set the close-on-exit flag if the user provided the file descriptor. */ if (!close_fd - && __builtin_expect (__fcntl (fd, F_SETFD, FD_CLOEXEC), 0) < 0) + && __glibc_unlikely (__fcntl_nocancel (fd, F_SETFD, FD_CLOEXEC) < 0)) goto lose; const size_t default_allocation = (4 * BUFSIZ < sizeof (struct dirent64) |