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

This commit is contained in:
2026-03-24 17:34:07 +01:00
parent 1542e80a3f
commit f3ea22935f
2 changed files with 15 additions and 8 deletions
+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;
}