From a630ba108e05e0f15e8823eaa0853ab6671acf0a Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 4 Nov 2021 16:45:02 -0300 Subject: win32: revert Everyone back to *S-1-1-0 see discussion at https://github.com/luarocks/luarocks/issues/1312#issuecomment-896155122 Fixes #1312 --- src/luarocks/fs/win32/tools.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) local ok -- Grant permissions available to all users - ok = fs.execute_quiet(vars.ICACLS .. " " .. fs.Q(filename) .. " /inheritance:d /grant:r Everyone:" .. others_perms) + ok = fs.execute_quiet(vars.ICACLS .. " " .. fs.Q(filename) .. " /inheritance:d /grant:r *S-1-1-0:" .. others_perms) if not ok then return false, "Failed setting permission " .. mode .. " for " .. scope end -- cgit v1.2.3-55-g6feb