[BACK]Return to session.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/session.c between version 1.144 and 1.145

version 1.144, 2002/07/19 15:43:33 version 1.145, 2002/07/22 11:03:06
Line 835 
Line 835 
                 child_set_env(&env, &envsize, "LOGNAME", pw->pw_name);                  child_set_env(&env, &envsize, "LOGNAME", pw->pw_name);
                 child_set_env(&env, &envsize, "HOME", pw->pw_dir);                  child_set_env(&env, &envsize, "HOME", pw->pw_dir);
 #ifdef HAVE_LOGIN_CAP  #ifdef HAVE_LOGIN_CAP
                 (void) setusercontext(lc, pw, pw->pw_uid, LOGIN_SETPATH);                  if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETPATH) < 0)
                 child_set_env(&env, &envsize, "PATH", getenv("PATH"));                          child_set_env(&env, &envsize, "PATH", _PATH_STDPATH);
                   else
                           child_set_env(&env, &envsize, "PATH", getenv("PATH"));
 #else  #else
                 child_set_env(&env, &envsize, "PATH", _PATH_STDPATH);                  child_set_env(&env, &envsize, "PATH", _PATH_STDPATH);
 #endif  #endif

Legend:
Removed from v.1.144  
changed lines
  Added in v.1.145