about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2023-08-24 12:54:51 -0400
committerRich Felker <dalias@aerifal.cx>2023-08-24 12:54:51 -0400
commit79bdacff83a6bd5b70ff5ae5eb8b6de82c2f7c30 (patch)
tree521b95b20cb0b110562dc1738c7fc241686ea243 /include
parent7291c6c66a8d033bb487e6d8c8b003c8a7b6a550 (diff)
downloadmusl-79bdacff83a6bd5b70ff5ae5eb8b6de82c2f7c30.tar.gz
musl-79bdacff83a6bd5b70ff5ae5eb8b6de82c2f7c30.tar.xz
musl-79bdacff83a6bd5b70ff5ae5eb8b6de82c2f7c30.zip
glob: fix wrong return code when aborting before any matches
when the result count was zero, glob was ignoring a possible
GLOB_ABORTED error code and returning GLOB_NOMATCH. whether this
happened could be nondeterministic and dependent on the order of
dirent enumeration, in cases where multiple matches were present and
only some produced errors.

caught by Tor's test_util_glob.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions