diff options
author | 2017-03-14 09:23:03 -0400 | |
---|---|---|
committer | 2017-03-14 09:23:03 -0400 | |
commit | b766fbbda05dc8c1b61e458dec0861fca726f767 (patch) | |
tree | dec02337631d497c36e8e2da6a3f0c6099bf9a3c | |
parent | xmms profile fix (diff) | |
download | firejail-b766fbbda05dc8c1b61e458dec0861fca726f767.tar.gz firejail-b766fbbda05dc8c1b61e458dec0861fca726f767.tar.zst firejail-b766fbbda05dc8c1b61e458dec0861fca726f767.zip |
fixed handling of .local profile files when the software is installed ~/.local directory
-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 | ||