<div dir="ltr">In the Ubuntu package there is an additional patch that fixes this issue, patch following signature.<div>It applies and fixes the issue on the current version of jessie (2.0.13~pre1-8)<br><div>-- <br><div class="gmail_signature"><div dir="ltr"><b><font size="2">David Kohen - Software Engineer.</font></b><div><font size="2"><a href="http://www.panda-os.com/" target="_blank">www.panda-os.com</a></font></div><div><div><div><a href="http://www.panda-os.com" target="_blank"><img src="http://www.panda-os.com/wp-content/uploads/2013/04/panda-logo-v25D2.png" alt="www.panda-os.com"></a><br></div></div></div><div><br></div><div><div><br></div><div>## Description: Checks if buffer contains only newline before discarding it</div><div>## Origin/Author: Torsten Spindler (Canonical)</div><div>## Bug: <a href="http://pad.lv/298217">http://pad.lv/298217</a></div><div>diff -Nur -x '*.orig' -x '*~' libgksu-2.0.13~pre1//libgksu/libgksu.c libgksu-2.0.13~pre1.new//libgksu/libgksu.c</div><div>--- libgksu-2.0.13~pre1//libgksu/libgksu.c<span class="" style="white-space:pre">       </span>2011-09-13 09:43:51.723178003 +0200</div><div>+++ libgksu-2.0.13~pre1.new//libgksu/libgksu.c<span class="" style="white-space:pre">  </span>2011-09-13 09:46:16.603182354 +0200</div><div>@@ -2980,16 +2980,22 @@</div><div> <span class="" style="white-space:pre">        </span>  /* ignore the first newline that comes right after sudo receives</div><div> <span class="" style="white-space:pre">      </span>     the password */</div><div> <span class="" style="white-space:pre">   </span>  fgets (buffer, 255, fdfile);</div><div>-<span class="" style="white-space:pre">   </span>  /* this is the status we are interested in */</div><div>-<span class="" style="white-space:pre">  </span>  fgets (buffer, 255, fdfile);</div><div>+          if (!strcmp (buffer, "\n")) </div><div>+            {</div><div>+<span class="" style="white-space:pre">  </span>      /* this is the status we are interested in */</div><div>+<span class="" style="white-space:pre">    </span>      fgets (buffer, 255, fdfile);</div><div>+            }</div><div> #else</div><div>           fcntl(parent_pipe[0], F_SETFL, fcntl(parent_pipe[0], F_GETFL) & ~O_NONBLOCK);</div><div> </div><div> <span class="" style="white-space:pre"> </span>  /* ignore the first newline that comes right after sudo receives</div><div> <span class="" style="white-space:pre">      </span>     the password */</div><div> <span class="" style="white-space:pre">   </span>  fgets (buffer, 255, infile);</div><div>-<span class="" style="white-space:pre">   </span>  /* this is the status we are interested in */</div><div>-<span class="" style="white-space:pre">  </span>  fgets (buffer, 255, infile);</div><div>+          if (!strcmp (buffer, "\n")) </div><div>+            {</div><div>+<span class="" style="white-space:pre">  </span>      /* this is the status we are interested in */</div><div>+<span class="" style="white-space:pre">    </span>      fgets (buffer, 255, infile);</div><div>+            }</div><div> #endif</div><div> <span class="" style="white-space:pre">  </span>}</div><div>       else</div></div><div><br></div></div></div>
</div></div></div>