mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
store the name of the interface in the interface object
This commit is contained in:
parent
620f9d4aaf
commit
a45fb5e859
@ -260,6 +260,7 @@ int main(int argc, char ** argv)
|
|||||||
printf("Error loading interface %s\n", intfname);
|
printf("Error loading interface %s\n", intfname);
|
||||||
goto out_free;
|
goto out_free;
|
||||||
}
|
}
|
||||||
|
strncpy(intf->name, intfname, strlen(intfname));
|
||||||
} else {
|
} else {
|
||||||
printf("No interface specified!\n");
|
printf("No interface specified!\n");
|
||||||
usage();
|
usage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user