mirror of
https://github.com/sheumann/telnetd.git
synced 2025-02-20 10:29:04 +00:00
Environment handling on GNO
*Initialize environ on startup *Separate child process environment from parent
This commit is contained in:
parent
03a535e170
commit
a995ff4eb5
@ -928,6 +928,9 @@ cleanopen(char *li)
|
||||
static void
|
||||
slaveproc(char *host, int autologin, char *autoname)
|
||||
{
|
||||
#ifdef __GNO__
|
||||
environPush();
|
||||
#endif
|
||||
getptyslave();
|
||||
start_login(host, autologin, autoname);
|
||||
/*NOTREACHED*/
|
||||
|
@ -151,6 +151,10 @@ main(int argc, char *argv[])
|
||||
#ifdef ENCRYPTION
|
||||
nclearto = 0;
|
||||
#endif /* ENCRYPTION */
|
||||
|
||||
#ifdef __GNO__
|
||||
environInit();
|
||||
#endif
|
||||
|
||||
/*
|
||||
* This initialization causes linemode to default to a configuration
|
||||
|
Loading…
x
Reference in New Issue
Block a user