Citeren "Kiss Gabor (Bitman)" <[email protected]>:

In drivers/snmp-ups.c:

                if (strcasecmp(cmdname, "shutdown.return")) {
                        ret = su_setvar("ups.delay.start", extradata);
                }
                if (strcasecmp(cmdname, "shutdown.stayoff")) {
                        ret = su_setvar("ups.delay.shutdown", extradata);
                }
                if (strcasecmp(cmdname, "shutdown.reboot")) {
                        ret = su_setvar("ups.delay.reboot", extradata);
                }

I think return value of strcasecmp() should be negated.

Good catch!

This was an unfinished attempt to add these shutdown.* commands to the driver, but was never really tested. I removed the lot, stalling this until I both have the time and hardware to properly test this.

Best regards, Arjen
--
Please keep list traffic on the list


_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

Reply via email to