From 210bb0c1d08a1b086ec22c26c4a9e45858277ca7 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 30 Jul 2022 04:22:34 -0500 Subject: [PATCH] Add a few more characters that aren't friendly in shell "eval" context. --- toys/other/blkid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/other/blkid.c b/toys/other/blkid.c index 4ba176f5..46c9a3ff 100644 --- a/toys/other/blkid.c +++ b/toys/other/blkid.c @@ -68,7 +68,7 @@ struct fstype { static void escape(char *str, int force) { - if (!force && str[strcspn(str, "\" \\")]) force++; + if (!force && str[strcspn(str, "\" \\\n\t$<>|&;`'~()!#?")]) force++; if (!force) return xputsn(str); putchar('"'); -- 2.39.2