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 <zab@versity.com>
This commit is contained in:
Zach Brown
2020-05-26 14:32:55 -07:00
committed by Zach Brown
parent 0a8faf3e94
commit 79e235af6e

View File

@@ -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;
}