posix: Sync glob code with gnulib

It sync with gnulib commit 43ee1a6bf and fixes and use-after-free
bug (gnulib commit 717766da8926e36).

Checked on x86_64-linux-gnu.
This commit is contained in:
Adhemerval Zanella 2020-12-29 17:41:19 -03:00
parent c2a150d089
commit 4883360415
3 changed files with 836 additions and 816 deletions

File diff suppressed because it is too large Load Diff

View File

@ -17,7 +17,7 @@
<https://www.gnu.org/licenses/>. */
#ifndef _LIBC
# include <config.h>
# include <libc-config.h>
#endif
#include <glob.h>

View File

@ -17,7 +17,7 @@
<https://www.gnu.org/licenses/>. */
#ifndef _LIBC
# include <config.h>
# include <libc-config.h>
#endif
#include <glob.h>