diff options
author | 2022-01-21 09:30:19 -0500 | |
---|---|---|
committer | 2022-01-21 09:30:19 -0500 | |
commit | de879e88c9dcbd237ff45e5560ab631ad063c081 (patch) | |
tree | b69b9dfd59f93348c3162f42089d86c153a919e7 /src | |
parent | fix #4078 (diff) | |
download | firejail-de879e88c9dcbd237ff45e5560ab631ad063c081.tar.gz firejail-de879e88c9dcbd237ff45e5560ab631ad063c081.tar.zst firejail-de879e88c9dcbd237ff45e5560ab631ad063c081.zip |
allow apostrophe in whitelist/blacklist ( #4614)
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/macros.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firejail/macros.c b/src/firejail/macros.c index 6d67fecbd..11385143a 100644 --- a/src/firejail/macros.c +++ b/src/firejail/macros.c | |||
@@ -314,9 +314,9 @@ void invalid_filename(const char *fname, int globbing) { | |||
314 | 314 | ||
315 | char *reject; | 315 | char *reject; |
316 | if (globbing) | 316 | if (globbing) |
317 | reject = "\\&!\"'<>%^{};,"; // file globbing ('*?[]') is allowed | 317 | reject = "\\&!\"<>%^{};,"; // file globbing ('*?[]') is allowed |
318 | else | 318 | else |
319 | reject = "\\&!?\"'<>%^{};,*[]"; | 319 | reject = "\\&!?\"<>%^{};,*[]"; |
320 | char *c = strpbrk(ptr, reject); | 320 | char *c = strpbrk(ptr, reject); |
321 | if (c) { | 321 | if (c) { |
322 | fprintf(stderr, "Error: \"%s\" is an invalid filename: rejected character: \"%c\"\n", fname, *c); | 322 | fprintf(stderr, "Error: \"%s\" is an invalid filename: rejected character: \"%c\"\n", fname, *c); |