mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-07-03 11:13:35 +00:00
Fix exit code on '-o list' or '-o help' option
From: Jan Safranek <jsafrane@redhat.com> 'ipmitool -o list' should return zero exit code.
This commit is contained in:
@ -573,6 +573,7 @@ ipmi_main(int argc, char ** argv,
|
|||||||
if (strncmp(oemtype, "list", 4) == 0 ||
|
if (strncmp(oemtype, "list", 4) == 0 ||
|
||||||
strncmp(oemtype, "help", 4) == 0) {
|
strncmp(oemtype, "help", 4) == 0) {
|
||||||
ipmi_oem_print();
|
ipmi_oem_print();
|
||||||
|
rc = 0;
|
||||||
goto out_free;
|
goto out_free;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user