diff options
author | FYP <its.fyp@gmail.com> | 2018-11-21 19:56:46 +0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-11-21 14:56:46 -0200 |
commit | 914a2b7503b15c40894ac9efb8f33352f1a75cd1 (patch) | |
tree | f8ed8f9d9366509d893afd29cc4dcd45fb453406 | |
parent | dc46a813a8966dc9570018969c1702a0e6a85e05 (diff) | |
download | luarocks-914a2b7503b15c40894ac9efb8f33352f1a75cd1.tar.gz luarocks-914a2b7503b15c40894ac9efb8f33352f1a75cd1.tar.bz2 luarocks-914a2b7503b15c40894ac9efb8f33352f1a75cd1.zip |
fs.win32: fix setting permissions for all users (#943)
-rw-r--r-- | src/luarocks/fs/win32/tools.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua index 744ba2d1..69512c9e 100644 --- a/src/luarocks/fs/win32/tools.lua +++ b/src/luarocks/fs/win32/tools.lua | |||
@@ -278,7 +278,7 @@ function tools.set_permissions(filename, mode, scope) | |||
278 | 278 | ||
279 | local ok | 279 | local ok |
280 | -- Grant permissions available to all users | 280 | -- Grant permissions available to all users |
281 | ok = fs.execute_quiet(fs.Q(vars.ICACLS) .. " " .. fs.Q(filename) .. " /inheritance:d /grant:r Everyone:" .. others_perms) | 281 | ok = fs.execute_quiet(fs.Q(vars.ICACLS) .. " " .. fs.Q(filename) .. " /inheritance:d /grant:r *S-1-1-0:" .. others_perms) |
282 | if not ok then | 282 | if not ok then |
283 | return false, "Failed setting permission " .. mode .. " for " .. scope | 283 | return false, "Failed setting permission " .. mode .. " for " .. scope |
284 | end | 284 | end |