[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.28 and 1.29

version 1.28, 2000/08/20 18:42:40 version 1.29, 2000/08/21 16:23:31
Line 845 
Line 845 
                 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
                 cp = login_getcapstr(lc, "path", _PATH_STDPATH, _PATH_STDPATH);                  (void) setusercontext(lc, pw, pw->pw_uid, LOGIN_SETPATH);
                   child_set_env(&env, &envsize, "PATH", getenv("PATH"));
 #else  #else
                 cp = _PATH_STDPATH;                  child_set_env(&env, &envsize, "PATH", _PATH_STDPATH);
 #endif  #endif
                 child_set_env(&env, &envsize, "PATH", cp);  
                 cp = NULL;  
   
                 snprintf(buf, sizeof buf, "%.200s/%.50s",                  snprintf(buf, sizeof buf, "%.200s/%.50s",
                          _PATH_MAILDIR, pw->pw_name);                           _PATH_MAILDIR, pw->pw_name);

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29