diff --git a/uid.c b/uid.c index ef55070e..c8723924 100644 --- a/uid.c +++ b/uid.c @@ -70,18 +70,15 @@ SYS_FUNC(getuid) { - if (exiting(tcp)) - tcp->u_rval = (uid_t) tcp->u_rval; - return RVAL_UDECIMAL; + return RVAL_UDECIMAL | RVAL_DECODED; } SYS_FUNC(setfsuid) { if (entering(tcp)) tprintf("%u", (uid_t) tcp->u_arg[0]); - else - tcp->u_rval = (uid_t) tcp->u_rval; - return RVAL_UDECIMAL; + + return RVAL_UDECIMAL | RVAL_DECODED; } SYS_FUNC(setuid)