[PATCH 5/5] file_ioctl.c: fix FIDEDUPERANGE output

jeffm at suse.com jeffm at suse.com
Fri May 27 03:33:07 UTC 2016


From: Jeff Mahoney <jeffm at suse.com>

* file_ioctl.c (file_ioctl): initialize rc to true in FIDEDUPERANGE.
  Otherwise we'll never show the output data in abbrev mode.
---
 file_ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/file_ioctl.c b/file_ioctl.c
index b065db9..26b1d9f 100644
--- a/file_ioctl.c
+++ b/file_ioctl.c
@@ -162,7 +162,7 @@ file_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
 				(uint16_t) args.dest_count);
 		}
 
-		bool rc = false;
+		bool rc = true;
 		tprints("info=");
 		if (abbrev(tcp)) {
 			tprints("...");
-- 
2.7.1





More information about the Strace-devel mailing list