From: Dmitry V. Levin Date: Fri, 9 Oct 2015 20:19:25 +0000 (+0000) Subject: fcntl.c: mark F_DUPFD and F_DUPFD_CLOEXEC return code with RVAL_FD flag X-Git-Tag: v4.11~107 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46129c998a1ee7900e5108156ee2f37554f77e33;p=strace fcntl.c: mark F_DUPFD and F_DUPFD_CLOEXEC return code with RVAL_FD flag * fcntl.c (SYS_FUNC(fcntl)): Set RVAL_FD flag in the return code for F_DUPFD and F_DUPFD_CLOEXEC operations. --- diff --git a/fcntl.c b/fcntl.c index a3f73e07..046a156e 100644 --- a/fcntl.c +++ b/fcntl.c @@ -117,10 +117,13 @@ SYS_FUNC(fcntl) tprints(", "); printflags(fdflags, tcp->u_arg[2], "FD_???"); break; - case F_SETOWN: case F_DUPFD: - case F_DUPFD_CLOEXEC: + case F_SETOWN: tprintf(", %ld", tcp->u_arg[2]); break; + case F_DUPFD: + case F_DUPFD_CLOEXEC: + tprintf(", %ld", tcp->u_arg[2]); + return RVAL_DECODED | RVAL_FD; case F_SETFL: tprints(", "); tprint_open_modes(tcp->u_arg[2]);