From 1b5d6f05ee7f839189a0e8788d77b7f05c09541f Mon Sep 17 00:00:00 2001 From: startx2017 Date: Wed, 17 May 2017 10:58:42 -0400 Subject: allow symbolic links as profile names, fixing #1276 --- src/firejail/profile.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') 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) { } // check file - if (strlen(fname) == 0) { - fprintf(stderr, "Error: invalid profile file\n"); - exit(1); - } invalid_filename(fname); - if (is_dir(fname) || is_link(fname) || strstr(fname, "..")) { + if (strlen(fname) == 0 || is_dir(fname)) { fprintf(stderr, "Error: invalid profile file\n"); exit(1); } -- cgit v1.2.3-70-g09d2