Bug#266832: libgksuui1.0-0: please return a different errorcode when gksu fails to run

Gustavo Noronha Silva 266832@bugs.debian.org, 266832@bugs.debian.org
Sat, 16 Oct 2004 20:41:45 -0300


reassign 266832 gksu
thanks

On Thu, 19 Aug 2004 13:21:31 +0200
Michael Vogt <mvogt@acm.org> wrote:

> It would be nice if gksu returned a zero exit code after a successfull
> run and a non-zero exit code when the user clicks cancel or enters a
> wrong password. I dont't know if this has any security implications,
> but if not, please add this feature :)
>=20
> Apparently su itself provides this, so it should be safe?

Hey Michael,

I'm not sure I understand you. libgksuui handles the dialog which does
return GTK_RESPONSE_CANCEL if the user cancels the dialog and
GTK_RESPONSE_OK if ok is clicked. libgksu's gksu_context_run returns a
boolean to tell if an error happened and a GError to explain what happened.

I'll assume you're saying that the gksu application, which uses these libs,
should use this information to return an error code itself, so I'll
reassign the bug. Please correct me if I'm wrong =3D).

Thanks,

--=20
kov@debian.org: Gustavo Noronha <http://people.debian.org/~kov>
Debian:  <http://www.debian.org>  *  <http://www.debian-br.org>
  "N=E3o deixe para amanh=E3, o WML que voc=EA pode traduzir hoje!"
        http://debian-br.alioth.debian.org/?id=3DWebWML