]> Savannah Git Hosting - gnulib.git/commit
fts: improve memory-allocation errno handling
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Aug 2023 16:46:47 +0000 (09:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Aug 2023 17:15:03 +0000 (10:15 -0700)
commit5f4d15e63f94f1ffcf0bfb55e46b5ea55ee339fa
treed9d2559f8ce80a6d43f7207ea71f92545da1a1f3
parent957b8cd4923abb482ecb4c225205f2b8c3cec18c
fts: improve memory-allocation errno handling

* lib/fts.c (fts_read, fts_build): When enter_dir or setup_dir
fails, report its errno value back to the user.
(internal_function): Preserve errno.
* modules/fts (Depends-on): Add calloc-posix, free-posix,
malloc-posix, and realloc-posix, for better errno handling
on allocation failures.
ChangeLog
lib/fts.c
modules/fts