From 2166952ec393b9a8f890a12951c812c47fdfd457 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 21 Dec 2016 21:04:16 +0100 Subject: [PATCH] ash: clarify uclibc glob() bug in comment Signed-off-by: Denys Vlasenko --- shell/ash.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.25.1