[Toybox] [PATCH] dirtree: Prevent calling closedir() on null pointer
Rob Landley
rob at landley.net
Tue Dec 10 06:22:23 PST 2024
On 12/9/24 12:05, Kana Steimle wrote:
> While glibc gracefully ignores calling closedir() on a null pointer,
> musl will instead segfault, which causes programs that rely on
> dirtree_recurse or dirtree_flagread (cp, du, find, tar...) to segfault
> if it encounters a directory it isn't able to open. This patch
> prevents that from happening.
I went with a slightly different fix. Commit 8cee68231fa8.
Thanks,
Rob
More information about the Toybox
mailing list