* NEWS, man/login.defs.d/ENV_SUPATH.xml, libmisc/setupenv.c:
Harmonize other paths and documentation with previous change.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user