mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-03 04:01:43 +08: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,
|
||||
0);
|
||||
if (dirfd == -1)
|
||||
goto err;
|
||||
return false;
|
||||
}
|
||||
|
||||
char buffer[1024];
|
||||
|
Loading…
Reference in New Issue
Block a user