[git commit] ash: error out if ASH_INTERNAL_GLOB is not selected on uClibc

Denys Vlasenko vda.linux at googlemail.com
Wed Dec 21 03:13:23 UTC 2016

commit: https://git.busybox.net/busybox/commit/?id=3a4cdf45f928de0af09088bbbb96f60d9ac44e87
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
 shell/ash.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/shell/ash.c b/shell/ash.c
index 8d8cc46..7d45b2c 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -51,6 +51,14 @@
+# error uClibc glob() is buggy, use ASH_INTERNAL_GLOB.
+# error The bug is: for "$PWD"/<pattern> ash will escape e.g. dashes in "$PWD"
+# error with backslash, even ones which do not need to be: "/a-b" -> "/a\-b"
+# error glob() should unbackslash them and match. uClibc does not unbackslash,
+# error fails to match dirname, subsequently not expanding <pattern> in it.
 # include <glob.h>

More information about the busybox-cvs mailing list