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.
Gabor
_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev