diff options
Diffstat (limited to 'lib/chdir-long.c')
-rw-r--r-- | lib/chdir-long.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chdir-long.c b/lib/chdir-long.c index 28e24070e9..a88e27f34e 100644 --- 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; |