diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2016-01-25 21:41:15 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2016-01-25 21:41:15 (GMT) |
commit | d75a5607a3754c3ebbd888fd6264ce745b62634a (patch) | |
tree | e5312608439c02fa4a17270f31bb98c3c40a4e86 | |
parent | eae41ccbfd983312b99cbf1461d6217b701a57b0 (diff) | |
download | mxe-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.mk | 4 |
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 |