Package: libgksu2-0
Version: 2.0.5-1ubuntu5.1
Severity: wishlist
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu hardy ubuntu-patch
Hi,
attached is a small patch that adds a usleep() when gksu waits for the
sudo output. We had the problem that sudo hanged when the user had a
unresolvable local hostname and sudo would output "can not resolve
hostname" before the password prompt. The usleep fixes it (see
launchpad bug #237325).
Cheers,
Michael
-- System Information:
Debian Release: lenny/sid
APT prefers hardy-updates
APT policy: (500, 'hardy-updates'), (500, 'hardy-security'), (500,
'hardy-proposed'), (500, 'hardy')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-17-generic (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Versions of packages libgksu2-0 depends on:
ii gconf2 2.22.0-0ubuntu3 GNOME configuration database syste
ii libatk1.0-0 1.22.0-0ubuntu1 The ATK accessibility toolkit
ii libc6 2.7-10ubuntu3 GNU C Library: Shared libraries
ii libcairo2 1.6.0-0ubuntu2 The Cairo 2D vector graphics libra
ii libfontconfig1 2.5.0-2ubuntu3 generic font configuration library
ii libfreetype6 2.3.5-1ubuntu4 FreeType 2 font engine, shared lib
ii libgconf2-4 2.22.0-0ubuntu3 GNOME configuration database syste
ii libglade2-0 1:2.6.2-1 library to load .glade files at ru
ii libglib2.0-0 2.16.3-1ubuntu2 The GLib library of C routines
ii libgnome-keyring 2.22.2-0ubuntu1 GNOME keyring services library
ii libgtk2.0-0 2.12.9-3ubuntu4 The GTK+ graphical user interface
ii libgtop2-7 2.22.0-0ubuntu1 gtop system monitoring library
ii libpango1.0-0 1.20.1-1 Layout and rendering of internatio
ii libpixman-1-0 0.10.0-0ubuntu1 pixel-manipulation library for X a
ii libpng12-0 1.2.15~beta5-3 PNG library - runtime
ii libstartup-notif 0.9-1 library for program launch feedbac
ii libx11-6 2:1.1.3-1ubuntu2 X11 client-side library
ii libxml2 2.6.31.dfsg-2ubuntu1 GNOME XML library
ii libxrender1 1:0.9.4-1 X Rendering Extension client libra
ii xbase-clients 1:7.3+10ubuntu10.1 miscellaneous X clients - metapack
ii zlib1g 1:1.2.3.3.dfsg-7ubuntu1 compression library - runtime
Versions of packages libgksu2-0 recommends:
ii sudo 1.6.9p10-1ubuntu3.2 Provide limited super user privile
-- no debconf information
=== modified file 'libgksu/libgksu.c'
--- libgksu/libgksu.c 2008-06-04 10:41:44 +0000
+++ libgksu/libgksu.c 2008-06-04 11:03:42 +0000
@@ -2590,6 +2590,8 @@
if (context->debug)
fprintf (stderr, "buffer: -%s-\n", buffer);
+
+ usleep(1000);
}
if (context->debug)