From ff33aac4e99aadd0c7c4104a63fc3751220c90e0 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 20 Jul 2015 17:54:02 +0000 Subject: [PATCH] capability.c: make use of RVAL_DECODED * capability.c (sys_capset): Update for RVAL_DECODED. --- capability.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/capability.c b/capability.c index 0724f8d4..6b698acc 100644 --- a/capability.c +++ b/capability.c @@ -121,11 +121,10 @@ SYS_FUNC(capget) SYS_FUNC(capset) { - if (entering(tcp)) { - cap_user_header_t h = get_cap_header(tcp, tcp->u_arg[0]); - print_cap_header(tcp, tcp->u_arg[0], h); - tprints(", "); - print_cap_data(tcp, tcp->u_arg[1], h); - } - return 0; + cap_user_header_t h = get_cap_header(tcp, tcp->u_arg[0]); + print_cap_header(tcp, tcp->u_arg[0], h); + tprints(", "); + print_cap_data(tcp, tcp->u_arg[1], h); + + return RVAL_DECODED; }