aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-01-11 14:11:36 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2017-01-11 14:11:36 -0500
commit17ba8d39620e3b3b2c6814ac0ee8e69785cf98a8 (patch)
tree1ab04c89726a05056879b708c0b27a87706155fe
parenttemoprary fix for local profile feature (diff)
downloadfirejail-17ba8d39620e3b3b2c6814ac0ee8e69785cf98a8.tar.gz
firejail-17ba8d39620e3b3b2c6814ac0ee8e69785cf98a8.tar.zst
firejail-17ba8d39620e3b3b2c6814ac0ee8e69785cf98a8.zip
fix
-rw-r--r--src/firejail/profile.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c
index f328f71ef..33b6eab91 100644
--- a/src/firejail/profile.c
+++ b/src/firejail/profile.c
@@ -1017,8 +1017,13 @@ void profile_read(const char *fname) {
1017 // open profile file: 1017 // open profile file:
1018 FILE *fp = fopen(fname, "r"); 1018 FILE *fp = fopen(fname, "r");
1019 if (fp == NULL) { 1019 if (fp == NULL) {
1020 // if the file ends in ".local", do not exit
1021 char *ptr = strstr(fname, ".local");
1022 if (ptr && strlen(ptr) == 6)
1023 return;
1024
1020 fprintf(stderr, "Error: cannot open profile file %s\n", fname); 1025 fprintf(stderr, "Error: cannot open profile file %s\n", fname);
1021 return; 1026 exit(1);
1022 } 1027 }
1023 1028
1024 int msg_printed = 0; 1029 int msg_printed = 0;