correct isExecutable
mathias mathias
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/FbTk/FileUtil.cc
→
src/FbTk/FileUtil.cc
@@ -62,7 +62,7 @@ }
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 ||