summaryrefslogtreecommitdiff
path: root/obt/paths.c
diff options
context:
space:
mode:
Diffstat (limited to 'obt/paths.c')
-rw-r--r--obt/paths.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/obt/paths.c b/obt/paths.c
index e2e4859b..8afe4f71 100644
--- a/obt/paths.c
+++ b/obt/paths.c
@@ -331,7 +331,8 @@ static inline gboolean try_exec(const ObtPaths *const p,
struct stat st;
BSEARCH_SETUP(guint);
- stat(path, &st);
+ if (stat(path, &st) != 0)
+ return FALSE;
if (!S_ISREG(st.st_mode))
return FALSE;