[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#611487: xterm: immediately exits upon running: exec login USER



Hi Jeffrey.

Jeffrey Sheinberg <jeff@bsrd.net> (29/01/2011):
> With xterm Version: 261-1 installed, when I run this command,
> 
>     $ exec login USER
> 
> the xterm immediately exits.  This problem does not occur with prior
> versions of xterm installed, eg, Version: 235-2.
> 
> Note that on my system, login is setuid root, thus enabling exec-ing
> login from the base level shell, on e.g., tty1, pts/2, to work.

Trying that without exec:
| $ login USER
| No utmp entry.  You must exec "login" from the lowest level "sh"

Now, if you use “exec”, you're replacing xterm by the login binary,
which returns (due to wrong usage), meaning your (previously-xterm)
process returns, which isn't exactly a bug in xterm.

The same happens with e.g. xfce4-terminal, so I guess xterm isn't at
fault here.

Please note that I tried with the same permission as yours on login:
| $ ls -l /bin/login
| -rwsr-xr-x 1 root root 45384 Sep 26 15:59 /bin/login

Looks like notabug to me, but I'll wait a bit before closing it.

KiBi.

Attachment: signature.asc
Description: Digital signature


Reply to: