mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-12 16:20:06 +00:00
Linux: Avoid closing -1 on failure in __closefrom_fallback
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
parent
91e92272ca
commit
5ad9d62c3b
@ -48,7 +48,7 @@ __closefrom_fallback (int from, _Bool dirfd_fallback)
|
|||||||
dirfd = __open_nocancel (FD_TO_FILENAME_PREFIX, O_RDONLY | O_DIRECTORY,
|
dirfd = __open_nocancel (FD_TO_FILENAME_PREFIX, O_RDONLY | O_DIRECTORY,
|
||||||
0);
|
0);
|
||||||
if (dirfd == -1)
|
if (dirfd == -1)
|
||||||
goto err;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
char buffer[1024];
|
char buffer[1024];
|
||||||
|
Loading…
Reference in New Issue
Block a user