From a9c08c6f528bbcb30e13b1d9ff06d5e678fc10b1 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Fri, 1 Mar 2019 16:46:49 -0800 Subject: [PATCH] __MSYS2__ acts like UNIX but cannot handle --x permission https://github.com/upx/upx/issues/256 modified: p_unix.cpp --- src/p_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_unix.cpp b/src/p_unix.cpp index 61a1c0f2..8816957a 100644 --- a/src/p_unix.cpp +++ b/src/p_unix.cpp @@ -63,7 +63,7 @@ bool PackUnix::canPack() if (exetype == 0) return false; -#if defined(__unix__) +#if defined(__unix__) && !defined(__MSYS2__) // must be executable by owner if ((fi->st.st_mode & S_IXUSR) == 0) throwCantPack("file not executable; try 'chmod +x'");