Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-12-21 23:04:16 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2016-12-21 23:04:16 +0300
commit2166952ec393b9a8f890a12951c812c47fdfd457 (patch)
tree56dfa7221a52141d0b642c040119f4b226f2944e /shell/ash.c
parent3a4cdf45f928de0af09088bbbb96f60d9ac44e87 (diff)
ash: clarify uclibc glob() bug in comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 7d45b2cd2..802626d4e 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