Bug#314727: [Pkg-shadow-devel] Bug#314727: login: suspend command from su shell fails to return to parent shell

Nicolas François nicolas.francois@centraliens.net
Mon, 20 Jun 2005 20:26:01 +0200


On Mon, Jun 20, 2005 at 03:50:03PM +0200, Christian Perrier wrote:
> 
> Great job on that one, Alex. ++beer for you

Many thanks from here too, Alex.
Now I understand what is done in upstream run_shell;)


A similar patch should be made (for Debian and upstream) for newgrp: I
experienced the same behavior.


I'm wondering what should be done for login (you must test with suspend -f).
IMO, the current behavior is OK when CLOSE_SESSION is set to "yes" (i.e. the
user is locked, as reported in this bug report), but when it is set to "no"
(old default in Debian) the focus is probably given to the caller.
(I the case of a default Debian install, the user is still locked by getty
because login was exec'ed - I don't know about other getty;
I login is strated from a shell (without "exec login"), then the prompt is
given to caller shell)

Kind Regards,
-- 
Nekral