diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-12-21 23:04:16 +0300 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-01 15:01:04 +0300 |
commit | 2169b25b152b54935fdc706dbf1032df6ae1af27 (patch) | |
tree | d14d87b16f9a7529009fca134c0d1a055b7e33f5 /shell/ash.c | |
parent | 18a7bee73670af792d25dac1835e75eeeef0a08e (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.c | 3 |
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 |