From: Denys Vlasenko Date: Wed, 21 Dec 2016 20:04:16 +0000 (+0100) Subject: ash: clarify uclibc glob() bug in comment X-Git-Tag: 1_26_1~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2169b25b152b54935fdc706dbf1032df6ae1af27;p=oweals%2Fbusybox.git ash: clarify uclibc glob() bug in comment Signed-off-by: Denys Vlasenko --- 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 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