summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathias <mathias>2004-12-24 06:14:08 (GMT)
committermathias <mathias>2004-12-24 06:14:08 (GMT)
commitddfb14a2642f8326b4e06b23af52909db8a1ddf7 (patch)
tree590b491ec3667261376a89ec2eb8730ba230a5d9 /src
parent1910d5af463ebc9e49cb53a14377f557288c6139 (diff)
downloadfluxbox_lack-ddfb14a2642f8326b4e06b23af52909db8a1ddf7.zip
fluxbox_lack-ddfb14a2642f8326b4e06b23af52909db8a1ddf7.tar.bz2
correct isExecutable
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/FileUtil.cc2
1 files changed, 1 insertions, 1 deletions
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) {
62 62
63bool FileUtil::isExecutable(const char* filename) { 63bool FileUtil::isExecutable(const char* filename) {
64 struct stat buf; 64 struct stat buf;
65 if (!filename || !stat(filename, &buf)) 65 if (!filename || stat(filename, &buf))
66 return false; 66 return false;
67 67
68 return buf.st_mode & S_IXUSR || 68 return buf.st_mode & S_IXUSR ||