diff options
author | Ryan Pavlik <rpavlik@iastate.edu> | 2011-10-28 16:58:50 (GMT) |
---|---|---|
committer | Ryan Pavlik <rpavlik@iastate.edu> | 2011-10-31 15:51:13 (GMT) |
commit | 75c6cee969f6d88f7373d4cac00d1c670e0b76e6 (patch) | |
tree | 6c6186441fad4c0d9a2ffc1a19675d23aef23b98 /src | |
parent | 1ba4fbe8785a7acf3c4cab6de556929e8f5375b9 (diff) | |
download | fluxbox-75c6cee969f6d88f7373d4cac00d1c670e0b76e6.zip fluxbox-75c6cee969f6d88f7373d4cac00d1c670e0b76e6.tar.bz2 |
FbTk/FileUtil.cc: Use only file masks defined.
Needed for mingw-cross-env
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/FileUtil.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/FbTk/FileUtil.cc b/src/FbTk/FileUtil.cc index 5de560b..c92b336 100644 --- a/src/FbTk/FileUtil.cc +++ b/src/FbTk/FileUtil.cc | |||
@@ -63,9 +63,14 @@ bool FileUtil::isExecutable(const char* filename) { | |||
63 | if (!filename || stat(filename, &buf)) | 63 | if (!filename || stat(filename, &buf)) |
64 | return false; | 64 | return false; |
65 | 65 | ||
66 | return buf.st_mode & S_IXUSR || | 66 | return buf.st_mode & S_IXUSR |
67 | buf.st_mode & S_IXGRP || | 67 | #ifdef S_IXGRP |
68 | buf.st_mode & S_IXOTH; | 68 | || buf.st_mode & S_IXGRP |
69 | #endif | ||
70 | #ifdef S_IXOTH | ||
71 | || buf.st_mode & S_IXOTH | ||
72 | #endif | ||
73 | ; | ||
69 | } | 74 | } |
70 | 75 | ||
71 | bool FileUtil::copyFile(const char* from, const char* to) { | 76 | bool FileUtil::copyFile(const char* from, const char* to) { |