From 718a242205b30571663fcead7d7089b8ba02aeae Mon Sep 17 00:00:00 2001 From: Dmitry Bazhenov Date: Mon, 12 Oct 2015 12:50:14 +0500 Subject: [PATCH] ID:398 - Fixed channel setaccess command. 'channel setaccess' command uses wrong command-line arguments to construct the set user access request. This patch fixes this problem. --- lib/ipmi_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ipmi_channel.c b/lib/ipmi_channel.c index 95017b8..96361eb 100644 --- a/lib/ipmi_channel.c +++ b/lib/ipmi_channel.c @@ -776,7 +776,7 @@ ipmi_set_user_access(struct ipmi_intf *intf, int argc, char **argv) channel, user_id); return (-1); } - for (i = 3; i < argc; i ++) { + for (i = 2; i < argc; i ++) { if (strncmp(argv[i], "callin=", 7) == 0) { if (strncmp(argv[i] + 7, "off", 3) == 0) { user_access.callin_callback = 1;