Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *** lua.lua.orig 2017-10-22 20:12:23.000000000 +0800
- --- lua.lua 2017-10-12 06:31:19.000000000 +0800
- *************** function fs_lua.check_command_permission
- *** 827,833 ****
- local ok = true
- local err = ""
- for _, dir in ipairs { cfg.rocks_dir, root_dir } do
- ! if fs.exists(dir) and not fs.is_writable(dir) then
- ok = false
- err = "Your user does not have write permissions in " .. dir
- break
- --- 827,833 ----
- local ok = true
- local err = ""
- for _, dir in ipairs { cfg.rocks_dir, root_dir } do
- ! if fs.exists(dir) and not fs.is_writable(dir) and not fs.is_writable(dir .. "/bin") then
- ok = false
- err = "Your user does not have write permissions in " .. dir
- break
Add Comment
Please, Sign In to add comment