Skip to content

Commit

Permalink
allow apostrophe in whitelist/blacklist ( #4614)
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Jan 21, 2022
1 parent ac6c8c0 commit de879e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/firejail/macros.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ void invalid_filename(const char *fname, int globbing) {

char *reject;
if (globbing)
reject = "\\&!\"'<>%^{};,"; // file globbing ('*?[]') is allowed
reject = "\\&!\"<>%^{};,"; // file globbing ('*?[]') is allowed
else
reject = "\\&!?\"'<>%^{};,*[]";
reject = "\\&!?\"<>%^{};,*[]";
char *c = strpbrk(ptr, reject);
if (c) {
fprintf(stderr, "Error: \"%s\" is an invalid filename: rejected character: \"%c\"\n", fname, *c);
Expand Down

0 comments on commit de879e8

Please sign in to comment.