fix: fix SYS_GETUSER missing in syscall switch, use getuser in shell username print

This commit is contained in:
daniel committed 2026-03-24 17:34:07 +01:00
1 parent 58a144fc1a
commit 6e471c2eb4
2 files changed
+15 -8

No files matched your search

+6
View File
@@ -337,6 +337,12 @@ namespace Montauk {
return Sys_SetTZ((int32_t)frame->arg1);
case SYS_GETTZ:
return Sys_GetTZ();
case SYS_SETUSER:
if (!ValidUserPtr(frame->arg2)) return -1;
return Sys_SetUser((int)frame->arg1, (const char*)frame->arg2);
case SYS_GETUSER:
if (!ValidUserPtr(frame->arg1)) return -1;
return Sys_GetUser((char*)frame->arg1, frame->arg2);
default:
return -1;
}