diff options
author | 2021-06-17 14:44:59 -0400 | |
---|---|---|
committer | 2021-06-17 14:44:59 -0400 | |
commit | f6e5a588c42d9afcf85a22b98a7c6a09bb43850c (patch) | |
tree | 63103b55b866c59c486d1430acc8b633b8cd90f7 | |
parent | appimage: automatically detect profile (diff) | |
download | firejail-f6e5a588c42d9afcf85a22b98a7c6a09bb43850c.tar.gz firejail-f6e5a588c42d9afcf85a22b98a7c6a09bb43850c.tar.zst firejail-f6e5a588c42d9afcf85a22b98a7c6a09bb43850c.zip |
appimage fix
-rw-r--r-- | src/firejail/appimage.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/firejail/appimage.c b/src/firejail/appimage.c index d194eeafb..8c5b5a5fe 100644 --- a/src/firejail/appimage.c +++ b/src/firejail/appimage.c | |||
@@ -57,9 +57,13 @@ int appimage_find_profile(const char *archive) { | |||
57 | char *ptr = strchr(buf, '\n'); | 57 | char *ptr = strchr(buf, '\n'); |
58 | if (ptr) | 58 | if (ptr) |
59 | *ptr = '\0'; | 59 | *ptr = '\0'; |
60 | if (strcasestr(archive, buf)) | 60 | if (strcasestr(archive, buf)) { |
61 | fclose(fp); | ||
61 | return profile_find_firejail(buf, 1); | 62 | return profile_find_firejail(buf, 1); |
63 | } | ||
62 | } | 64 | } |
65 | |||
66 | fclose(fp); | ||
63 | return 0; | 67 | return 0; |
64 | 68 | ||
65 | } | 69 | } |