[git commit branch/1_26_stable] ash: clarify uclibc glob() bug in comment

Denys Vlasenko vda.linux at googlemail.com
Sun Jan 1 12:01:04 UTC 2017


commit: https://git.busybox.net/busybox/commit/?id=2169b25b152b54935fdc706dbf1032df6ae1af27
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/1_26_stable

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

diff --git a/shell/ash.c b/shell/ash.c
index 7d45b2c..802626d 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -57,6 +57,9 @@
 # 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.
+// Testcase:
+// if (glob("/etc/polkit\\-1", 0, NULL, &pglob)) - this returns 0 on uclibc, no bug
+// if (glob("/etc/polkit\\-1/*", 0, NULL, &pglob)) printf("uclibc bug!\n");
 #endif
 
 #if !ENABLE_ASH_INTERNAL_GLOB


More information about the busybox-cvs mailing list