diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2011-12-29 16:51:30 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2011-12-29 16:51:30 -0200 |
commit | 50857122d613d208c72342922422bd50c6afa3ee (patch) | |
tree | aad17321d52f1b55f53191122a33f867bb5d3416 | |
parent | 077d50899ac04dab1bc2bb036d8feb814d720103 (diff) | |
download | luarocks-50857122d613d208c72342922422bd50c6afa3ee.tar.gz luarocks-50857122d613d208c72342922422bd50c6afa3ee.tar.bz2 luarocks-50857122d613d208c72342922422bd50c6afa3ee.zip |
Use textual notation for permissions since LuaPosix 5.1.15 does not support octal notation
-rw-r--r-- | src/luarocks/fs/unix.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/luarocks/fs/unix.lua b/src/luarocks/fs/unix.lua index 279eca14..262cb3d0 100644 --- a/src/luarocks/fs/unix.lua +++ b/src/luarocks/fs/unix.lua | |||
@@ -127,5 +127,6 @@ function is_actual_binary(filename) | |||
127 | end | 127 | end |
128 | 128 | ||
129 | function copy_binary(filename, dest) | 129 | function copy_binary(filename, dest) |
130 | return fs.copy(filename, dest, "0755") | 130 | -- LuaPosix (as of 5.1.15) does not support octal notation... |
131 | return fs.copy(filename, dest, "u=rwx,g=rx,o=rx") | ||
131 | end | 132 | end |