On 9/12/06, Steffen Grunewald <[EMAIL PROTECTED]> wrote:
Here's a temporary patch to make "sel time set" functionality work again,
while being standard compliant:

--- lib/ipmi_sel.c.ORIG 2006-08-22 15:50:13.000000000 +0200
+++ lib/ipmi_sel.c      2006-09-12 14:55: 29.505018222 +0200
@@ -1533,7 +1533,7 @@
        struct tm            tm;
        time_t               t;
        uint32_t             timei;
-       const char *         time_format = "%m/%d/%Y %H:%M:%S";
+       const char *         time_format = "%m/%d/%YT%H:%M:%S";

        memset(&req, 0, sizeof(req));
        req.msg.netfn    = IPMI_NETFN_STORAGE;

(since this was taken from another mail, and edited by hand, take care of
blanks and tabs)

Of course the input format must be adjusted (T instead of blank as separator)


Anyone know why this is breaking?  Whitespace parsing in strptime() should be matching 0+ whitespace characters, but I don't know how the handling may be affected by locale or other settings.

Along that same line, does it work if %n or %t were used instead of a space in the format string?  These both say they match "Arbitrary Whitespace" according to the manpage.

-duncan


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to