]> granicus.if.org Git - strace/blobdiff - umask.c
tests: check decoding of vcpu auxstr
[strace] / umask.c
diff --git a/umask.c b/umask.c
index cc00cc6a03c9d5f7bfdcb2e01569aa0783f0a215..d42258a9618de4ee17ee24a9b3475ba0380bf90a 100644 (file)
--- a/umask.c
+++ b/umask.c
@@ -1,10 +1,8 @@
 #include "defs.h"
 
-int
-sys_umask(struct tcb *tcp)
+SYS_FUNC(umask)
 {
-       if (entering(tcp)) {
-               tprintf("%#lo", tcp->u_arg[0]);
-       }
-       return RVAL_OCTAL;
+       print_numeric_umode_t(tcp->u_arg[0]);
+
+       return RVAL_DECODED | RVAL_OCTAL;
 }