From 79e235af6eba2289be4ab535daf3653b6dcb2c16 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 26 May 2020 14:32:55 -0700 Subject: [PATCH] scoutfs-utils: fix argv typo in error message The data_waiting ioctl used the wrong argv index when printing the path arg string that it failed to open. Signed-off-by: Zach Brown --- utils/src/waiting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/src/waiting.c b/utils/src/waiting.c index 6e916de0..72f32b17 100644 --- a/utils/src/waiting.c +++ b/utils/src/waiting.c @@ -67,7 +67,7 @@ static int waiting_cmd(int argc, char **argv) if (fd < 0) { ret = -errno; fprintf(stderr, "failed to open '%s': %s (%d)\n", - argv[4], strerror(errno), errno); + argv[3], strerror(errno), errno); return ret; }