From ddfb14a2642f8326b4e06b23af52909db8a1ddf7 Mon Sep 17 00:00:00 2001 From: mathias Date: Fri, 24 Dec 2004 06:14:08 +0000 Subject: correct isExecutable --- src/FbTk/FileUtil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FbTk/FileUtil.cc b/src/FbTk/FileUtil.cc index b70eff3..26b6e78 100644 --- a/src/FbTk/FileUtil.cc +++ b/src/FbTk/FileUtil.cc @@ -62,7 +62,7 @@ bool FileUtil::isRegularFile(const char* filename) { bool FileUtil::isExecutable(const char* filename) { struct stat buf; - if (!filename || !stat(filename, &buf)) + if (!filename || stat(filename, &buf)) return false; return buf.st_mode & S_IXUSR || -- cgit v0.11.2