Changeset View
Changeset View
Standalone View
Standalone View
files/patch-src_luarocks_fs_lua.lua
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- src/luarocks/fs/lua.lua.orig 2018-07-24 18:13:31 UTC | |||||
+++ src/luarocks/fs/lua.lua | |||||
@@ -885,7 +885,7 @@ function fs_lua._unix_rwx_to_number(rwx) | |||||
local num = 0 | |||||
for i = 1, 9 do | |||||
if rwx:sub(10 - i, 10 - i) == "-" then | |||||
- num = num + 2^i | |||||
+ num = num + 2^(i-1) | |||||
end | |||||
end | |||||
return num |