From b766fbbda05dc8c1b61e458dec0861fca726f767 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 14 Mar 2017 09:23:03 -0400 Subject: fixed handling of .local profile files when the software is installed ~/.local directory --- src/firejail/profile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) { } if (access(fname, R_OK)) { // if the file ends in ".local", do not exit - char *ptr = strstr(fname, ".local"); + const char *base = gnu_basename(fname); + char *ptr = strstr(base, ".local"); if (ptr && strlen(ptr) == 6) return; -- cgit v1.2.3-70-g09d2