Permalink
Browse files

fix

  • Loading branch information...
1 parent e8431db commit 17ba8d39620e3b3b2c6814ac0ee8e69785cf98a8 @netblue30 committed Jan 11, 2017
Showing with 6 additions and 1 deletion.
  1. +6 −1 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;

0 comments on commit 17ba8d3

Please sign in to comment.