diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -871,7 +871,12 @@ do_setup_env(Session *s, const char *shell) | |||
871 | * needed for loading shared libraries. So the path better | 871 | * needed for loading shared libraries. So the path better |
872 | * remains intact here. | 872 | * remains intact here. |
873 | */ | 873 | */ |
874 | # ifdef SUPERUSER_PATH | ||
875 | child_set_env(&env, &envsize, "PATH", | ||
876 | s->pw->pw_uid == 0 ? SUPERUSER_PATH : _PATH_STDPATH); | ||
877 | # else | ||
874 | child_set_env(&env, &envsize, "PATH", _PATH_STDPATH); | 878 | child_set_env(&env, &envsize, "PATH", _PATH_STDPATH); |
879 | # endif /* SUPERUSER_PATH */ | ||
875 | # endif /* HAVE_CYGWIN */ | 880 | # endif /* HAVE_CYGWIN */ |
876 | #endif /* HAVE_LOGIN_CAP */ | 881 | #endif /* HAVE_LOGIN_CAP */ |
877 | 882 | ||