summaryrefslogtreecommitdiff
path: root/changes
diff options
context:
space:
mode:
authorDaniel Pinto <danielpinto52@gmail.com>2021-03-25 01:23:04 +0000
committerDaniel Pinto <danielpinto52@gmail.com>2021-03-26 01:56:07 +0000
commit36768b5756f05774258ca9c5db6379f74dfd6586 (patch)
tree585e647de12258daf6b4b902bbeb620588d69bcf /changes
parentc359c3056b2dbf17987a8955af30884ee438108e (diff)
downloadtor-36768b5756f05774258ca9c5db6379f74dfd6586.tar.gz
tor-36768b5756f05774258ca9c5db6379f74dfd6586.zip
Fix glob processing on BSD systems. #40318
On Linux systems, glob automatically ignores the errors ENOENT and ENOTDIR because they are expected during glob expansion. But BSD systems do not ignore these, resulting in glob failing when globs expand to invalid paths. This is fixed by adding a custom error handler that ignores only these two errors and removing the GLOB_ERR flag as it makes glob fail even if the error handler ignores the error and is unnecessary as the error handler will make glob fail on all other errors anyway.
Diffstat (limited to 'changes')
-rw-r--r--changes/bug403184
1 files changed, 4 insertions, 0 deletions
diff --git a/changes/bug40318 b/changes/bug40318
new file mode 100644
index 0000000000..cc02f08ca0
--- /dev/null
+++ b/changes/bug40318
@@ -0,0 +1,4 @@
+ o Minor bugfixes (configuration tests bsd):
+ - Fix glob processing errors when globs expand to invalid paths on
+ BSD systems. Fixes bug 40318; bugfix on 0.4.5.1-alpha. Patch by
+ Daniel Pinto.