correct isExecutable

This commit is contained in:
mathias 2004-12-24 06:14:08 +00:00
parent 1910d5af46
commit ddfb14a264

View file

@ -62,7 +62,7 @@ bool FileUtil::isRegularFile(const char* filename) {
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 ||