diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2025-03-05 01:25:04 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2025-03-10 10:51:05 -0300 |
commit | 4052a7fd513517730455ed63539b04cce54fa90c (patch) | |
tree | 88740c8ffcd7fc50249661e8a5b8e372af08ccbe | |
parent | 0c06ba333dce3fe81c3c854fa1f2edcbe2800e85 (diff) | |
download | luarocks-4052a7fd513517730455ed63539b04cce54fa90c.tar.gz luarocks-4052a7fd513517730455ed63539b04cce54fa90c.tar.bz2 luarocks-4052a7fd513517730455ed63539b04cce54fa90c.zip |
fix: fs: get miniposix.chmod error message correctly
-rw-r--r-- | src/luarocks/fs/lua.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua index 9c0729c3..5bf98b2e 100644 --- a/src/luarocks/fs/lua.lua +++ b/src/luarocks/fs/lua.lua | |||
@@ -1018,8 +1018,7 @@ function fs_lua.set_permissions(filename, mode, scope) | |||
1018 | table.insert(new_perms, octal_to_rwx[c]) | 1018 | table.insert(new_perms, octal_to_rwx[c]) |
1019 | end | 1019 | end |
1020 | perms = table.concat(new_perms) | 1020 | perms = table.concat(new_perms) |
1021 | local err = miniposix.chmod(filename, perms) | 1021 | return miniposix.chmod(filename, perms) |
1022 | return err == 0 | ||
1023 | end | 1022 | end |
1024 | 1023 | ||
1025 | function fs_lua.current_user() | 1024 | function fs_lua.current_user() |