projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
[gnulib.git]
/
lib
/
chdir-long.c
diff --git
a/lib/chdir-long.c
b/lib/chdir-long.c
index
28e2407
..
a88e27f
100644
(file)
--- a/
lib/chdir-long.c
+++ b/
lib/chdir-long.c
@@
-72,7
+72,7
@@
static int
cdb_advance_fd (struct cd_buf *cdb, char const *dir)
{
int new_fd = openat (cdb->fd, dir,
- O_
RDONLY
| O_DIRECTORY | O_NOCTTY | O_NONBLOCK);
+ O_
SEARCH
| O_DIRECTORY | O_NOCTTY | O_NONBLOCK);
if (new_fd < 0)
return -1;