# # # patch "unix/process.cc" # from [2d952838b067e002206f6a67999534a3e1143218] # to [43e718ca7819cf146a0c3204a7cb69802b689d96] # ============================================================ --- unix/process.cc 2d952838b067e002206f6a67999534a3e1143218 +++ unix/process.cc 43e718ca7819cf146a0c3204a7cb69802b689d96 @@ -52,7 +52,7 @@ int rc = stat(path, &s); N(rc != -1, F("error getting status of file %s: %s") % path % strerror(errno)); - return s.st_mode & S_IXUSR; + return (s.st_mode & S_IXUSR) && !(s.st_mode & S_IFDIR); } int make_executable(const char *path)