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.
This commit is contained in:
Dmitry Bazhenov 2015-10-12 12:50:14 +05:00 committed by Zdenek Styblik
parent 636a785d82
commit 718a242205

View File

@ -776,7 +776,7 @@ ipmi_set_user_access(struct ipmi_intf *intf, int argc, char **argv)
channel, user_id); channel, user_id);
return (-1); 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], "callin=", 7) == 0) {
if (strncmp(argv[i] + 7, "off", 3) == 0) { if (strncmp(argv[i] + 7, "off", 3) == 0) {
user_access.callin_callback = 1; user_access.callin_callback = 1;