Bug#266832: libgksuui1.0-0: please return a different errorcode
when gksu fails to run
Michael Vogt
Michael Vogt <mvogt@acm.org>, 266832@bugs.debian.org
Thu, 21 Oct 2004 12:14:07 +0200
Hi Gustavo,
On Sat, Oct 16, 2004 at 08:41:45PM -0300, Gustavo Noronha Silva 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 :)
> >
> > Apparently su itself provides this, so it should be safe?
> 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 =).
Your analysis is absolutly right :) Sorry that my inital request was
so unclear.
thanks,
Michael
--
The first rule of holes is: when you find yourself in one, stop digging. - PJ
Linux is not The Answer. Yes is the answer. Linux is The Question. - Neo