Kernel declares flags parameter as long and looks like x32 and n32
implement no compat for this call.

* clone.c (SYS_FUNC(unshare)): Use getarg_ull and printflags64 for
obtaining and parsing flags parameter.
---
 clone.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clone.c b/clone.c
index c2832c1..0f2d32c 100644
--- a/clone.c
+++ b/clone.c
@@ -153,7 +153,7 @@ SYS_FUNC(setns)
 
 SYS_FUNC(unshare)
 {
-       printflags_long(unshare_flags, tcp->u_arg[0], "CLONE_???");
+       printflags64(unshare_flags, getarg_ull(tcp, 0), "CLONE_???");
        return RVAL_DECODED;
 }
 
-- 
1.7.10.4


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to