From 17ba8d39620e3b3b2c6814ac0ee8e69785cf98a8 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 11 Jan 2017 14:11:36 -0500 Subject: fix --- src/firejail/profile.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) { // open profile file: FILE *fp = fopen(fname, "r"); if (fp == NULL) { + // if the file ends in ".local", do not exit + char *ptr = strstr(fname, ".local"); + if (ptr && strlen(ptr) == 6) + return; + fprintf(stderr, "Error: cannot open profile file %s\n", fname); - return; + exit(1); } int msg_printed = 0; -- cgit v1.2.3-70-g09d2