Bug#293236: gksu: Config file doesn't work as advertised

Juergen Kreileder Juergen Kreileder <jk@blackdown.de>, 293236@bugs.debian.org
Tue, 01 Feb 2005 23:14:02 +0100


Package: gksu
Version: 1.2.3-1
Severity: normal

Setting "sudo-mode = yes" actually disables sudo mode.  "prompt = yes"
is also interpreted wrongly.
Here's a fix:

--- gksu/gksu.c.orig    2005-02-01 23:04:04.000000000 +0100
+++ gksu/gksu.c 2005-02-01 23:04:39.000000000 +0100
@@ -282,12 +282,12 @@ read_config_file_options (GksuContext *c
       else if (!strcmp ("sudo-mode", key))
        {
          if (!strcasecmp ("yes", value))
-           sudo_mode = FALSE;
+           sudo_mode = TRUE;
        }
       else if (!strcmp ("prompt", key))
        {
          if (!strcasecmp ("yes", value))
-           prompt = FALSE;
+           prompt = TRUE;
        }
 
       g_strfreev (tmp);
=

You also might want to document that setting "prompt = yes" only has
an effect if "disable-grab = yes" and "force-grab = no"


        Juergen

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc64)
Kernel: Linux 2.6.11-rc1jk2
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages gksu depends on:
ii  libatk1.0-0              1.8.0-4         The ATK accessibility toolkit
ii  libc6                    2.3.2.ds1-20    GNU C Library: Shared libraries an
ii  libgksu1.2-0             1.2.5a-1        library providing su and sudo func
ii  libgksuui1.0-0           1.0.3-2         a graphical fronted to su library
ii  libglib2.0-0             2.6.1-3         The GLib library of C routines
ii  libgtk2.0-0              2.4.14-2        The GTK+ graphical user interface 
ii  libpango1.0-0            1.8.0-3         Layout and rendering of internatio
ii  libx11-6                 4.3.0.dfsg.1-10 X Window System protocol client li
ii  sudo                     1.6.8p5-1       Provide limited super user privile
ii  xlibs                    4.3.0.dfsg.1-10 X Keyboard Extension (XKB) configu

-- no debconf information

-- 
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux/java2-status/