X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fopenbox;a=blobdiff_plain;f=obt%2Fpaths.c;h=8afe4f711fe67b76cca7debeb55524ac98119615;hp=e2e4859b8d94385053c1f50bcf46a172bdc71b5e;hb=3afa20de54814b1abb447542d72c3b795892932d;hpb=34178097d559ef522ea0984091489c209f4e9e0e 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;