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