[nut-Bugs][311427] upscode2 driver shutdown fails

nut-bugs at alioth.debian.org nut-bugs at alioth.debian.org
Tue Jul 7 20:40:18 UTC 2009


Bugs item #311427, was changed at 2009-02-01 20:22 by Arjen de Korte
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411542&aid=311427&group_id=30602

>Status: Closed
Priority: 4
Submitted By: Arjen de Korte (adkorte-guest)
>Assigned to: Arjen de Korte (adkorte-guest)
Summary: upscode2 driver shutdown fails 
Category: Driver
Group: None
>Resolution: Fixed


Initial Comment:
In r743 the following was added in upsdrv_shutdown() that is called when the driver is started with the -k flag:

         if (can_upsd && can_uppc) {

[...]

         } else {
                 upslogx(LOG_EMERG, "Shutdown called, but UPS does not support it");
         }

Problem with this, is that can_upsd and can_uppc are set through upsdrv_initinfo(), which is not called when the driver is started with the -k flag and hence, shutting down always fails. This means that since r743 (or nut-2.2.0), the upscode2 driver has been broken.

----------------------------------------------------------------------

>Comment By: Arjen de Korte (adkorte-guest)
Date: 2009-07-07 22:40

Message:
Fixed in nut-2.4.1 (r1763 or newer)

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411542&aid=311427&group_id=30602



More information about the NUT-tracker mailing list