diff options
author | 2015-08-19 00:12:42 +0100 | |
---|---|---|
committer | 2015-08-19 00:12:42 +0100 | |
commit | d81fc1424aa77b20d1db82bafc600c566b1598b2 (patch) | |
tree | cb5952eed67eb6f2ff5901dc5f299894d82043b8 /src/firejail | |
parent | Merge pull request #32 from pmillerchip/tilde-support (diff) | |
download | firejail-d81fc1424aa77b20d1db82bafc600c566b1598b2.tar.gz firejail-d81fc1424aa77b20d1db82bafc600c566b1598b2.tar.zst firejail-d81fc1424aa77b20d1db82bafc600c566b1598b2.zip |
Support filenames with spaces in the blacklist option
Diffstat (limited to 'src/firejail')
-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 |