From: Dmitry V. Levin Date: Fri, 9 Oct 2015 01:55:46 +0000 (+0000) Subject: fcntl.c: make use of RVAL_DECODED X-Git-Tag: v4.11~156 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3410ba54362db912775b045569383199037b9cb;p=strace fcntl.c: make use of RVAL_DECODED * fcntl.c (SYS_FUNC(fcntl)): Return RVAL_DECODED for write-only operations. --- diff --git a/fcntl.c b/fcntl.c index e7a4030f..3cf984bc 100644 --- a/fcntl.c +++ b/fcntl.c @@ -170,23 +170,14 @@ SYS_FUNC(fcntl) printxval(lockfcmds, tcp->u_arg[2], "F_???"); break; #endif + case F_GETOWN: + break; + default: + return 0; } + return RVAL_DECODED; } else { switch (tcp->u_arg[1]) { - case F_DUPFD: -#ifdef F_DUPFD_CLOEXEC - case F_DUPFD_CLOEXEC: -#endif - case F_SETFD: case F_SETFL: - case F_SETLK: case F_SETLKW: - case F_SETOWN: case F_GETOWN: -#ifdef F_NOTIFY - case F_NOTIFY: -#endif -#ifdef F_SETLEASE - case F_SETLEASE: -#endif - break; case F_GETFD: if (syserror(tcp) || tcp->u_rval == 0) return 0;