fix astro's syscall redefiniton so files use it

This commit is contained in:
2026-02-21 14:12:05 -06:00
parent d026cfbb03
commit dd2437d4af
9 changed files with 29 additions and 29 deletions

View File

@@ -3,7 +3,7 @@ local args = {...}
local uid
if args[1] then
uid = syscall.auth_getuid(args[1])
uid = syscall.getuid(args[1])
if not uid then
print("id: user '" .. args[1] .. "' does not exist")
syscall.exit(1); return
@@ -12,7 +12,7 @@ else
uid = syscall.getuid()
end
local pwent = syscall.auth_getpasswd(uid)
local pwent = syscall.getpasswd(uid)
local name = (pwent and pwent.username) or tostring(uid)
local gid = (pwent and pwent.gid) or uid