]> granicus.if.org Git - strace/commitdiff
chdir.c: make use of RVAL_DECODED
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 20 Jul 2015 17:46:03 +0000 (17:46 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 20 Jul 2015 22:03:07 +0000 (22:03 +0000)
* chdir.c (sys_chdir): Update for RVAL_DECODED.

chdir.c

diff --git a/chdir.c b/chdir.c
index a91d366ceabd400f2bc44026187cda7b47c30553..e8ac28585dc21108cbe4c69dcae5f2b3b71c5a28 100644 (file)
--- a/chdir.c
+++ b/chdir.c
@@ -2,8 +2,7 @@
 
 SYS_FUNC(chdir)
 {
-       if (entering(tcp)) {
-               printpath(tcp, tcp->u_arg[0]);
-       }
-       return 0;
+       printpath(tcp, tcp->u_arg[0]);
+
+       return RVAL_DECODED;
 }