Bug#3008: Telnetd sets wrong USER (funny side effects)
You (Guy Maor) wrote:
> I don't mind changing login to set or clear the USER variable, but any
> program that requires it is buggy. Consulting W.R. Stevens, I find
> that USER is required by neither POSIX.1 nor XPG3. LOGNAME is, and
> login dutifully sets it.
>
> Programs using USER should instead use LOGNAME.
Perhaps this bug should be redirected to TIN then ? ;). Anyway if you
don't feel comfortable with USER, please explicitly unset it in "login".
Anyone who needs it can do whatever they want in /etc/profile.
Mike.
--
Miquel van | Cistron Internet Services -- Alphen aan den Rijn.
Smoorenburg, | mailto:info@cistron.nl http://www.cistron.nl/
miquels@het.net | Tel: +31-172-419445 (Voice) 430979 (Fax) 442580 (Data)
Reply to: