Hi Oliver,<div><br></div><div>Thank you. I've rebuilt the nut packages with your patch, and confirmed that the problem is fixed: I get the proper system shutdown.<br><br>Best wishes,</div><div>Vladimir<br><br><div class="gmail_quote">

On Tue, Jul 3, 2012 at 6:33 PM, Oliver Schonefeld <span dir="ltr"><<a href="mailto:schonefeld@ids-mannheim.de" target="_blank">schonefeld@ids-mannheim.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
the last commit to upssched.c (Merge Coverity branch, r3555) broke<br>
upssched with commands that have a second argument.<br>
If a command with a second argument is used, "enc" in line 697 is not an<br>
empty buffer and  snprintfcat() just appends some stuff, i.e. the<br>
following command<br>
  CANCEL onbatt online<br>
becomes<br>
  onlineCANCEL "onbatt" "online"<br>
and is then sent to the pipe-fd.<br>
<br>
The attached patch replaces snprintfcat() with snprintf() and fixes the<br>
problem.<br>
<br>
Best,<br>
  Oliver<br>
<span class="HOEnZb"><font color="#888888">--<br>
Oliver Schonefeld<br>
Institut für Deutsche Sprache, Zentrale Forschung<br>
R5, 6-13, D-68161 Mannheim<br>
<a href="tel:%2B49-%280%29621-1581-451" value="+496211581451">+49-(0)621-1581-451</a> | <a href="http://www.ids-mannheim.de" target="_blank">http://www.ids-mannheim.de</a><br>
<br>
</font></span></blockquote></div><br></div>