diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/profile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index d5d62e929..00dd87dad 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -1055,7 +1055,8 @@ void profile_read(const char *fname) { | |||
1055 | } | 1055 | } |
1056 | if (access(fname, R_OK)) { | 1056 | if (access(fname, R_OK)) { |
1057 | // if the file ends in ".local", do not exit | 1057 | // if the file ends in ".local", do not exit |
1058 | char *ptr = strstr(fname, ".local"); | 1058 | const char *base = gnu_basename(fname); |
1059 | char *ptr = strstr(base, ".local"); | ||
1059 | if (ptr && strlen(ptr) == 6) | 1060 | if (ptr && strlen(ptr) == 6) |
1060 | return; | 1061 | return; |
1061 | 1062 | ||