From c3410ba54362db912775b045569383199037b9cb Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 9 Oct 2015 01:55:46 +0000 Subject: [PATCH] fcntl.c: make use of RVAL_DECODED * fcntl.c (SYS_FUNC(fcntl)): Return RVAL_DECODED for write-only operations. --- fcntl.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) 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; -- 2.40.0