Revert "Option --assume-execute-permission"

This reverts commit 4484acf9d6.
This commit is contained in:
Markus F.X.J. Oberhumer
2020-01-08 05:38:19 +01:00
parent 643e48efd7
commit 849bdd87e1
3 changed files with 3 additions and 7 deletions
+3 -2
View File
@@ -68,10 +68,11 @@ bool PackUnix::canPack()
if (exetype == 0)
return false;
#if defined(__unix__) && !defined(__MSYS2__)
// must be executable by owner
if (!opt->o_unix.assume_execute_permission // benefits __MSYS2__
&& (fi->st.st_mode & S_IXUSR) == 0)
if ((fi->st.st_mode & S_IXUSR) == 0)
throwCantPack("file not executable; try 'chmod +x'");
#endif
if (file_size < 4096)
throwCantPack("file is too small");