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
/
openat.c
diff --git
a/lib/openat.c
b/lib/openat.c
index
f2eac86
..
9970e46
100644
(file)
--- a/
lib/openat.c
+++ b/
lib/openat.c
@@
-244,7
+244,7
@@
bool
openat_needs_fchdir (void)
{
bool needs_fchdir = true;
- int fd = open ("/", O_
RDONLY
);
+ int fd = open ("/", O_
SEARCH
);
if (0 <= fd)
{