summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2016-01-25 21:41:15 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2016-01-25 21:41:15 (GMT)
commitd75a5607a3754c3ebbd888fd6264ce745b62634a (patch)
treee5312608439c02fa4a17270f31bb98c3c40a4e86
parenteae41ccbfd983312b99cbf1461d6217b701a57b0 (diff)
downloadmxe-d75a5607a3754c3ebbd888fd6264ce745b62634a.zip
mxe-d75a5607a3754c3ebbd888fd6264ce745b62634a.tar.gz
mxe-d75a5607a3754c3ebbd888fd6264ce745b62634a.tar.bz2
mxe-conf: prevent touching a file in readonly dir
fix #1199
-rw-r--r--src/mxe-conf.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mxe-conf.mk b/src/mxe-conf.mk
index cd12357..45ba6a3 100644
--- a/src/mxe-conf.mk
+++ b/src/mxe-conf.mk
@@ -109,7 +109,9 @@ define $(PKG)_BUILD_$(BUILD)
#create readonly directory to force wine to fail
mkdir -p "$$WINEPREFIX"
- [ -f "$$WINEPREFIX/.gitkeep"] || touch "$$WINEPREFIX/.gitkeep"
+ [ -f "$$WINEPREFIX/.gitkeep" ] \
+ || chmod 0755 "$$WINEPREFIX" \
+ && touch "$$WINEPREFIX/.gitkeep"
chmod 0555 "$$WINEPREFIX"
#create script "wine" in a directory which is in PATH