all repos — fluxbox @ ddfb14a2642f8326b4e06b23af52909db8a1ddf7

custom fork of the fluxbox windowmanager

correct isExecutable
mathias mathias
commit

ddfb14a2642f8326b4e06b23af52909db8a1ddf7

parent

1910d5af463ebc9e49cb53a14377f557288c6139

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/FbTk/FileUtil.ccsrc/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 ||