Thomas Haupt
|
Re: telnet session shall inherit environment of main session
|
Thomas Haupt
11/09/2009 4:09 AM
post41589
|
Re: telnet session shall inherit environment of main session
Looking into services/telnetd/sys_term.c, it appears that the slave end of telnetd will call a function named
'scrub_env()' which will erase the environment except for the following variables:
XAUTH, XAUTHORITY, DISPLAY, TERM, EDITOR, PAGER, LOGNAME,
POSIXLY_CORRECT, TERMCAP, PRINTER
So you should be able to inherit (from inetd's environment) e.g. the terminal type (TERM), but not e.g. the home
directory (HOME).
- Thomas
|
|
|