diff options
author | mathias <mathias> | 2004-12-24 06:14:08 (GMT) |
---|---|---|
committer | mathias <mathias> | 2004-12-24 06:14:08 (GMT) |
commit | ddfb14a2642f8326b4e06b23af52909db8a1ddf7 (patch) | |
tree | 590b491ec3667261376a89ec2eb8730ba230a5d9 /src/FbTk | |
parent | 1910d5af463ebc9e49cb53a14377f557288c6139 (diff) | |
download | fluxbox-ddfb14a2642f8326b4e06b23af52909db8a1ddf7.zip fluxbox-ddfb14a2642f8326b4e06b23af52909db8a1ddf7.tar.bz2 |
correct isExecutable
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/FileUtil.cc | 2 |
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 | ||
63 | bool FileUtil::isExecutable(const char* filename) { | 63 | bool 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 || |