summaryrefslogtreecommitdiff
path: root/src/lib/ecore_file
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_file')
-rw-r--r--src/lib/ecore_file/ecore_file_path.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/ecore_file/ecore_file_path.c b/src/lib/ecore_file/ecore_file_path.c
index 0c4e466ce5..513f3b9a8a 100644
--- a/src/lib/ecore_file/ecore_file_path.c
+++ b/src/lib/ecore_file/ecore_file_path.c
@@ -95,7 +95,10 @@ ecore_file_app_installed(const char *exe)
95 char buf[PATH_MAX]; 95 char buf[PATH_MAX];
96 96
97 if (!exe) return EINA_FALSE; 97 if (!exe) return EINA_FALSE;
98 if (ecore_file_can_exec(exe)) return EINA_TRUE; 98 if (((!strncmp(exe, "/", 1)) ||
99 (!strncmp(exe, "./", 2)) ||
100 (!strncmp(exe, "../", 3))) &&
101 ecore_file_can_exec(exe)) return EINA_TRUE;
99 102
100 EINA_LIST_FOREACH(__ecore_file_path_bin, l, dir) 103 EINA_LIST_FOREACH(__ecore_file_path_bin, l, dir)
101 { 104 {