Hi Oliver,

Thank you. I've rebuilt the nut packages with your patch, and confirmed
that the problem is fixed: I get the proper system shutdown.

Best wishes,
Vladimir

On Tue, Jul 3, 2012 at 6:33 PM, Oliver Schonefeld <
[email protected]> wrote:

> Hi,
>
> the last commit to upssched.c (Merge Coverity branch, r3555) broke
> upssched with commands that have a second argument.
> If a command with a second argument is used, "enc" in line 697 is not an
> empty buffer and  snprintfcat() just appends some stuff, i.e. the
> following command
>   CANCEL onbatt online
> becomes
>   onlineCANCEL "onbatt" "online"
> and is then sent to the pipe-fd.
>
> The attached patch replaces snprintfcat() with snprintf() and fixes the
> problem.
>
> Best,
>   Oliver
> --
> Oliver Schonefeld
> Institut für Deutsche Sprache, Zentrale Forschung
> R5, 6-13, D-68161 Mannheim
> +49-(0)621-1581-451 | http://www.ids-mannheim.de
>
>
_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev

Reply via email to