[Pkg-shadow-devel] Bug#95213: Passing env variables after the login name does not work

Nicolas François Nicolas François , 95213@bugs.debian.org
Wed, 6 Apr 2005 02:04:32 +0200


On Wed, Apr 06, 2005 at 01:16:28AM +0200, Tomasz KÅ‚oczko wrote:
> After above experiments seems thi is getty feacture.

I agree.

I'm surprised by the first test.
Here on Debian, (1) works (login root FOO=BAR on the command line).

This may be a difference between Solaris' login and Debian's one (and
probably yours).
(something like a check on the terminal, because there were only one
password prompt)

On my box, getty (agetty) is execl'ing login:
execl(options.login, options.login, "--", logname, (char *) 0);

So if it could split logname into a login and a set of ENV=VAL, then this
feature would work.

I will try to check other *getty available on Debian (at least I will
check their sources)

Dobranoc,
-- 
Nekral