]> granicus.if.org Git - strace/commitdiff
fanotify_init: mark return code with RVAL_FD flag
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 2 Aug 2015 01:31:40 +0000 (01:31 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 2 Aug 2015 01:31:40 +0000 (01:31 +0000)
* fanotify.c (sys_fanotify_init): Set RVAL_FD flag in the return code.

fanotify.c

index 1c3b7f26f65434145323d2b2406a1ea6b11df232..74b1d927ad3a6fbc8456ac70735324f04531f884 100644 (file)
@@ -24,7 +24,7 @@ SYS_FUNC(fanotify_init)
        tprints(", ");
        tprint_open_modes((unsigned) tcp->u_arg[1]);
 
-       return RVAL_DECODED;
+       return RVAL_DECODED | RVAL_FD;
 }
 
 #include "xlat/fan_mark_flags.h"