[PATCH] Add RVAL_FD to open_by_handle_at

Kossi Glokpor hotkatz32 at gmail.com
Mon Apr 3 19:13:29 UTC 2023


Mark the return of value of open_by_handle_at(2) as a file descriptor.

* src/file_handle.c: Add RVAL_FD flag to open_by_handle_at.

Signed-off-by: Kossi Glokpor <hotkatz32 at gmail.com>
---
 src/file_handle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/file_handle.c b/src/file_handle.c
index 7a6ef1022..29a95a4d5 100644
--- a/src/file_handle.c
+++ b/src/file_handle.c
@@ -124,5 +124,5 @@ SYS_FUNC(open_by_handle_at)
 	/* flags */
 	tprint_open_modes(tcp->u_arg[2]);
 
-	return RVAL_DECODED;
+	return RVAL_DECODED | RVAL_FD;
 }
-- 
2.34.1



More information about the Strace-devel mailing list