all repos — fluxbox @ 75c6cee969f6d88f7373d4cac00d1c670e0b76e6

custom fork of the fluxbox windowmanager

FbTk/FileUtil.cc: Use only file masks defined.

Needed for mingw-cross-env
Ryan Pavlik rpavlik@iastate.edu
commit

75c6cee969f6d88f7373d4cac00d1c670e0b76e6

parent

1ba4fbe8785a7acf3c4cab6de556929e8f5375b9

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

jump to
M src/FbTk/FileUtil.ccsrc/FbTk/FileUtil.cc

@@ -63,9 +63,14 @@ struct stat buf;

if (!filename || stat(filename, &buf)) return false; - return buf.st_mode & S_IXUSR || - buf.st_mode & S_IXGRP || - buf.st_mode & S_IXOTH; + return buf.st_mode & S_IXUSR +#ifdef S_IXGRP + || buf.st_mode & S_IXGRP +#endif +#ifdef S_IXOTH + || buf.st_mode & S_IXOTH +#endif + ; } bool FileUtil::copyFile(const char* from, const char* to) {