Bug #14346 ยป 0001-dir.c-pass-flags-to-openat-2-correctly.patch
| dir.c | ||
|---|---|---|
|
O_DIRECTORY|
|
||
|
# endif /* O_DIRECTORY */
|
||
|
0);
|
||
|
int fd = openat(oaa->basefd, oaa->path, 0, opendir_flags);
|
||
|
int fd = openat(oaa->basefd, oaa->path, opendir_flags);
|
||
|
dirp = fd >= 0 ? fdopendir(fd) : 0;
|
||
|
if (!dirp) {
|
||
| ... | ... | |
|
switch (gc_for_fd_with_gvl(e)) {
|
||
|
default:
|
||
|
if (fd < 0) fd = openat(oaa->basefd, oaa->path, 0, opendir_flags);
|
||
|
if (fd < 0) fd = openat(oaa->basefd, oaa->path, opendir_flags);
|
||
|
if (fd >= 0) dirp = fdopendir(fd);
|
||
|
if (dirp) return dirp;
|
||
|
-
|
||