diff options
author | 2015-08-19 18:30:51 -0400 | |
---|---|---|
committer | 2015-08-19 18:30:51 -0400 | |
commit | d291b52fe4bd7a9e61d20f9d9bdd7282c5274e9e (patch) | |
tree | f4b384a5fe014d8463c8920413435f5391d1479c /src | |
parent | moved bash completion files under src (diff) | |
parent | Support filenames with spaces in the blacklist option (diff) | |
download | firejail-d291b52fe4bd7a9e61d20f9d9bdd7282c5274e9e.tar.gz firejail-d291b52fe4bd7a9e61d20f9d9bdd7282c5274e9e.tar.zst firejail-d291b52fe4bd7a9e61d20f9d9bdd7282c5274e9e.zip |
Merge pull request #33 from pmillerchip/filenames-with-spaces
Support filenames with spaces in the blacklist option
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/profile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index 4aac2bdb4..39b0710cb 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -69,7 +69,7 @@ static void check_file_name(char *ptr, int lineno) { | |||
69 | 69 | ||
70 | int len = strlen(ptr); | 70 | int len = strlen(ptr); |
71 | // file globbing ('*') is allowed | 71 | // file globbing ('*') is allowed |
72 | if (strcspn(ptr, "\\&!?\"'<>%^(){}[];, ") != len) { | 72 | if (strcspn(ptr, "\\&!?\"'<>%^(){}[];,") != len) { |
73 | if (lineno == 0) | 73 | if (lineno == 0) |
74 | fprintf(stderr, "Error: \"%s\" is an invalid filename\n", ptr); | 74 | fprintf(stderr, "Error: \"%s\" is an invalid filename\n", ptr); |
75 | else | 75 | else |