Environment handling on GNO

*Initialize environ on startup
*Separate child process environment from parent
This commit is contained in:
Stephen Heumann 2016-01-06 20:39:54 -06:00
parent 03a535e170
commit a995ff4eb5
2 changed files with 7 additions and 0 deletions

View File

@ -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*/

View File

@ -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