[PATCH] run-parts: permit dot in file name

Ján Sáreník jajomojo at gmail.com
Thu May 13 09:01:09 UTC 2021


See https://gist.github.com/andyshinn/3ae01fa13cb64c9d36e7#gistcomment-2044506
---
 debianutils/run_parts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debianutils/run_parts.c b/debianutils/run_parts.c
index 585a4b58f..d2a7f4a08 100644
--- a/debianutils/run_parts.c
+++ b/debianutils/run_parts.c
@@ -119,7 +119,7 @@ static bool invalid_name(const char *c)
 {
        c = bb_basename(c);

-       while (*c && (isalnum(*c) || *c == '_' || *c == '-'))
+       while (*c && (isalnum(*c) || *c == '_' || *c == '-' || *c == '.'))
                c++;

        return *c; /* TRUE (!0) if terminating NUL is not reached */
--
2.25.1


More information about the busybox mailing list