mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-01-21 16:42:19 +08:00
Commit remedies bug introduced by modifications of ipmi_lanp_main() yesterday.
Fixes wrong evaluation of strncmp() in ipmi_lanp_main().
This commit is contained in:
parent
89243c2929
commit
89759cbdec
@ -2151,14 +2151,12 @@ ipmi_lanp_main(struct ipmi_intf * intf, int argc, char ** argv)
|
||||
if (argc == 0) {
|
||||
print_lan_usage();
|
||||
return (-1);
|
||||
}
|
||||
|
||||
if (strncmp(argv[0], "help", 4)) {
|
||||
} else if (strncmp(argv[0], "help", 4) == 0) {
|
||||
print_lan_usage();
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strncmp(argv[0], "printconf", 9) || strncmp(argv[0], "print", 5)) {
|
||||
} else if (strncmp(argv[0], "printconf", 9) == 0 ||
|
||||
strncmp(argv[0], "print", 5) == 0)
|
||||
{
|
||||
if (argc > 2) {
|
||||
print_lan_usage();
|
||||
return (-1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user