diff options
-rw-r--r-- | src/firejail/profile.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index c515accc0..9ae2aa5b4 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -1089,12 +1089,8 @@ void profile_read(const char *fname) { | |||
1089 | } | 1089 | } |
1090 | 1090 | ||
1091 | // check file | 1091 | // check file |
1092 | if (strlen(fname) == 0) { | ||
1093 | fprintf(stderr, "Error: invalid profile file\n"); | ||
1094 | exit(1); | ||
1095 | } | ||
1096 | invalid_filename(fname); | 1092 | invalid_filename(fname); |
1097 | if (is_dir(fname) || is_link(fname) || strstr(fname, "..")) { | 1093 | if (strlen(fname) == 0 || is_dir(fname)) { |
1098 | fprintf(stderr, "Error: invalid profile file\n"); | 1094 | fprintf(stderr, "Error: invalid profile file\n"); |
1099 | exit(1); | 1095 | exit(1); |
1100 | } | 1096 | } |