summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-directory-async.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-11-23 21:53:17 +0100
committerVictor Kareh <[email protected]>2020-12-11 13:18:31 -0500
commit4a7fe0f438ab37bcb483ac63627b86872da6c1b8 (patch)
tree0e19a21863264117e0cd167eda36e7930836eb49 /libcaja-private/caja-directory-async.c
parenta54cf4b052364bf26ecc5625bbf65f89db7bcec8 (diff)
downloadcaja-4a7fe0f438ab37bcb483ac63627b86872da6c1b8.tar.bz2
caja-4a7fe0f438ab37bcb483ac63627b86872da6c1b8.tar.xz
caja-directory-async: trust only system launchers
Diffstat (limited to 'libcaja-private/caja-directory-async.c')
-rw-r--r--libcaja-private/caja-directory-async.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libcaja-private/caja-directory-async.c b/libcaja-private/caja-directory-async.c
index 615bcd93..b50c168e 100644
--- a/libcaja-private/caja-directory-async.c
+++ b/libcaja-private/caja-directory-async.c
@@ -3861,14 +3861,9 @@ is_link_trusted (CajaFile *file,
return TRUE;
}
- if (caja_file_can_execute (file))
- {
- return TRUE;
- }
-
res = FALSE;
- if (caja_file_is_local (file))
+ if (caja_file_can_execute (file) && caja_file_is_local (file))
{
GFile *location;