* NEWS, man/login.defs.d/ENV_SUPATH.xml, libmisc/setupenv.c:

Harmonize other paths and documentation with previous
	change.
This commit is contained in:
nekral-guest
2009-11-01 16:59:48 +00:00
parent 248d5fd870
commit e770e87035
4 changed files with 11 additions and 3 deletions

View File

@@ -265,7 +265,7 @@ void setup_env (struct passwd *info)
if (NULL == cp) {
/* not specified, use a minimal default */
addenv ("PATH=/bin:/usr/bin", NULL);
addenv ((pwent.pw_uid == 0) ? "PATH=/sbin:/bin:/usr/sbin:/usr/bin" : "PATH=/bin:/usr/bin", NULL);
} else if (strchr (cp, '=')) {
/* specified as name=value (PATH=...) */
addenv (cp, NULL);