diff options
author | 2017-05-17 10:58:42 -0400 | |
---|---|---|
committer | 2017-05-17 10:58:42 -0400 | |
commit | 1b5d6f05ee7f839189a0e8788d77b7f05c09541f (patch) | |
tree | 446ce38d9da63d4c2e887a1c421dde561b3628d0 | |
parent | merged 0.9.46-bugfixes on mainline following 0.9.46 release (diff) | |
download | firejail-1b5d6f05ee7f839189a0e8788d77b7f05c09541f.tar.gz firejail-1b5d6f05ee7f839189a0e8788d77b7f05c09541f.tar.zst firejail-1b5d6f05ee7f839189a0e8788d77b7f05c09541f.zip |
allow symbolic links as profile names, fixing #1276
-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 | } |