diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2021-11-04 16:45:02 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2021-11-04 16:46:20 -0300 |
commit | a630ba108e05e0f15e8823eaa0853ab6671acf0a (patch) | |
tree | 1a8017deaaeaf02cca456d959b3e507f3e9bc6bb | |
parent | dee2acd9029ff6a356c59184d2236961ad5b3c23 (diff) | |
download | luarocks-a630ba108e05e0f15e8823eaa0853ab6671acf0a.tar.gz luarocks-a630ba108e05e0f15e8823eaa0853ab6671acf0a.tar.bz2 luarocks-a630ba108e05e0f15e8823eaa0853ab6671acf0a.zip |
win32: revert Everyone back to *S-1-1-0
see discussion at
https://github.com/luarocks/luarocks/issues/1312#issuecomment-896155122
Fixes #1312
-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 88f87c2f..5d98e526 100644 --- a/src/luarocks/fs/win32/tools.lua +++ b/src/luarocks/fs/win32/tools.lua | |||
@@ -271,7 +271,7 @@ function tools.set_permissions(filename, mode, scope) | |||
271 | 271 | ||
272 | local ok | 272 | local ok |
273 | -- Grant permissions available to all users | 273 | -- Grant permissions available to all users |
274 | ok = fs.execute_quiet(vars.ICACLS .. " " .. fs.Q(filename) .. " /inheritance:d /grant:r Everyone:" .. others_perms) | 274 | ok = fs.execute_quiet(vars.ICACLS .. " " .. fs.Q(filename) .. " /inheritance:d /grant:r *S-1-1-0:" .. others_perms) |
275 | if not ok then | 275 | if not ok then |
276 | return false, "Failed setting permission " .. mode .. " for " .. scope | 276 | return false, "Failed setting permission " .. mode .. " for " .. scope |
277 | end | 277 | end |