Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Jan 11, 2017
1 parent e8431db commit 17ba8d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/firejail/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 17ba8d3

Please sign in to comment.