diff options
author | startx2017 <vradu.startx@yandex.com> | 2019-05-29 09:31:58 -0400 |
---|---|---|
committer | startx2017 <vradu.startx@yandex.com> | 2019-05-29 09:31:58 -0400 |
commit | 5835b7ce5b681045848cd41e7e5805dd730f847d (patch) | |
tree | b3e5ce020efb9da46b445f6b2bfff28517587026 /src | |
parent | merge: strncmp byte count fixes (diff) | |
download | firejail-5835b7ce5b681045848cd41e7e5805dd730f847d.tar.gz firejail-5835b7ce5b681045848cd41e7e5805dd730f847d.tar.zst firejail-5835b7ce5b681045848cd41e7e5805dd730f847d.zip |
merge: checking for invalid chars in profile filename before any other proce…
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index f5acaa603..0811fa806 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -1059,6 +1059,9 @@ int main(int argc, char **argv) { | |||
1059 | if (!ppath) | 1059 | if (!ppath) |
1060 | errExit("strdup"); | 1060 | errExit("strdup"); |
1061 | 1061 | ||
1062 | // checking for strange chars in the file name, no globbing | ||
1063 | invalid_filename(ppath, 0); | ||
1064 | |||
1062 | profile_read(ppath); | 1065 | profile_read(ppath); |
1063 | custom_profile = 1; | 1066 | custom_profile = 1; |
1064 | free(ppath); | 1067 | free(ppath); |