In the Ubuntu package there is an additional patch that fixes this issue, patch following signature. It applies and fixes the issue on the current version of jessie (2.0.13~pre1-8) -- *David Kohen - Software Engineer.* www.panda-os.com [image: www.panda-os.com] <http://www.panda-os.com>
## Description: Checks if buffer contains only newline before discarding it ## Origin/Author: Torsten Spindler (Canonical) ## Bug: http://pad.lv/298217 diff -Nur -x '*.orig' -x '*~' libgksu-2.0.13~pre1//libgksu/libgksu.c libgksu-2.0.13~pre1.new//libgksu/libgksu.c --- libgksu-2.0.13~pre1//libgksu/libgksu.c 2011-09-13 09:43:51.723178003 +0200 +++ libgksu-2.0.13~pre1.new//libgksu/libgksu.c 2011-09-13 09:46:16.603182354 +0200 @@ -2980,16 +2980,22 @@ /* ignore the first newline that comes right after sudo receives the password */ fgets (buffer, 255, fdfile); - /* this is the status we are interested in */ - fgets (buffer, 255, fdfile); + if (!strcmp (buffer, "\n")) + { + /* this is the status we are interested in */ + fgets (buffer, 255, fdfile); + } #else fcntl(parent_pipe[0], F_SETFL, fcntl(parent_pipe[0], F_GETFL) & ~O_NONBLOCK); /* ignore the first newline that comes right after sudo receives the password */ fgets (buffer, 255, infile); - /* this is the status we are interested in */ - fgets (buffer, 255, infile); + if (!strcmp (buffer, "\n")) + { + /* this is the status we are interested in */ + fgets (buffer, 255, infile); + } #endif } else

