mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
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:
parent
636a785d82
commit
718a242205
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user