version 1.28, 2000/08/20 18:42:40 |
version 1.29, 2000/08/21 16:23:31 |
|
|
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); |