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