aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/firejail/appimage.c3
-rw-r--r--src/firejail/sandbox.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/firejail/appimage.c b/src/firejail/appimage.c
index a4f727c0a..b2bccf225 100644
--- a/src/firejail/appimage.c
+++ b/src/firejail/appimage.c
@@ -56,7 +56,8 @@ int appimage_find_profile(const char *archive) {
56 char *ptr = strchr(buf, '\n'); 56 char *ptr = strchr(buf, '\n');
57 if (ptr) 57 if (ptr)
58 *ptr = '\0'; 58 *ptr = '\0';
59 if (strcasestr(archive, buf)) { 59 char *found = strcasestr(archive, buf);
60 if (found == archive) {
60 fclose(fp); 61 fclose(fp);
61 return profile_find_firejail(buf, 1); 62 return profile_find_firejail(buf, 1);
62 } 63 }
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c
index 538f5be67..827be5d85 100644
--- a/src/firejail/sandbox.c
+++ b/src/firejail/sandbox.c
@@ -878,7 +878,8 @@ int sandbox(void* sandbox_arg) {
878 //**************************** 878 //****************************
879 // appimage 879 // appimage
880 //**************************** 880 //****************************
881 appimage_mount(); 881 if (arg_appimage)
882 appimage_mount();
882 883
883 //**************************** 884 //****************************
884 // private mode 885 // private mode