Skip to content

Commit

Permalink
some cleanup for the previous commit (#3530)
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Oct 1, 2020
1 parent f1478ee commit a4e5640
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/firejail/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,6 @@ void profile_add(char *str) {
// read a profile file
static int include_level = 0;
void profile_read(const char *fname) {
printf("fname #%s#\n", fname);
EUID_ASSERT();

// exit program if maximum include level was reached
Expand Down Expand Up @@ -1648,15 +1647,13 @@ printf("fname #%s#\n", fname);
}
// --appimage - skip disable-shell.inc file
if (arg_appimage) {
printf("here %d\n", __LINE__);
char *tmp = strrchr(fname, '/');
if (tmp && *(tmp + 1) != '\0') {
tmp++;
if (strcmp(tmp, "disable-shell.inc") == 0)
return;
}
}
printf("here %d\n", __LINE__);

// open profile file:
FILE *fp = fopen(fname, "r");
Expand Down

0 comments on commit a4e5640

Please sign in to comment.