Guest User

Untitled

a guest
Oct 22nd, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. *** lua.lua.orig 2017-10-22 20:12:23.000000000 +0800
  2. --- lua.lua 2017-10-12 06:31:19.000000000 +0800
  3. *************** function fs_lua.check_command_permission
  4. *** 827,833 ****
  5. local ok = true
  6. local err = ""
  7. for _, dir in ipairs { cfg.rocks_dir, root_dir } do
  8. ! if fs.exists(dir) and not fs.is_writable(dir) then
  9. ok = false
  10. err = "Your user does not have write permissions in " .. dir
  11. break
  12. --- 827,833 ----
  13. local ok = true
  14. local err = ""
  15. for _, dir in ipairs { cfg.rocks_dir, root_dir } do
  16. ! if fs.exists(dir) and not fs.is_writable(dir) and not fs.is_writable(dir .. "/bin") then
  17. ok = false
  18. err = "Your user does not have write permissions in " .. dir
  19. break
Add Comment
Please, Sign In to add comment