1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

__MSYS2__ acts like UNIX but cannot handle --x permission

https://github.com/upx/upx/issues/256
	modified:   p_unix.cpp
This commit is contained in:
John Reiser 2019-03-01 16:46:49 -08:00
parent c2aa5c35f7
commit a9c08c6f52

View File

@ -63,7 +63,7 @@ bool PackUnix::canPack()
if (exetype == 0) if (exetype == 0)
return false; return false;
#if defined(__unix__) #if defined(__unix__) && !defined(__MSYS2__)
// must be executable by owner // must be executable by owner
if ((fi->st.st_mode & S_IXUSR) == 0) if ((fi->st.st_mode & S_IXUSR) == 0)
throwCantPack("file not executable; try 'chmod +x'"); throwCantPack("file not executable; try 'chmod +x'");