From a3a95fb7709a66357ea381e00cc1aea66500c24a Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 25 Oct 2004 19:20:47 +0000 Subject: [PATCH] add support for -s option --- ipmitool/src/ipmitool.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ipmitool/src/ipmitool.c b/ipmitool/src/ipmitool.c index a7f1108..9ee5d2d 100644 --- a/ipmitool/src/ipmitool.c +++ b/ipmitool/src/ipmitool.c @@ -66,7 +66,7 @@ # include #endif -#define OPTION_STRING "I:hVvcgEaH:P:f:U:p:L:A:t:m:" +#define OPTION_STRING "I:hVvcgsEaH:P:f:U:p:L:A:t:m:" int csv_output = 0; int verbose = 0; @@ -215,6 +215,7 @@ int main(int argc, char ** argv) int argflag, i; int rc = 0; int thump = 0; + int authspecial = 0; /* save program name */ if (!(progname = strrchr(argv[0], '/'))) @@ -239,6 +240,9 @@ int main(int argc, char ** argv) case 'g': thump = 1; break; + case 's': + authspecial = 1; + break; case 'v': verbose++; break; @@ -334,8 +338,14 @@ int main(int argc, char ** argv) printf("Error loading interface %s\n", intfname); goto out_free; } + intf->thump = thump; + if (authspecial) { + intf->session->authspecial = authspecial; + ipmi_intf_session_set_authtype(intf, IPMI_SESSION_AUTHTYPE_OEM); + } + /* setup log */ log_init(progname, 0, verbose);