2009-11-01 Michel Hermier <michel.hermier@gmail.com>

* src/su.c: Set the default ENV_SUPATH to
	/sbin:/bin:/usr/sbin:/usr/bin (i.e. PATH when no ENV_SUPATH is
	specified).
This commit is contained in:
nekral-guest 2009-11-01 16:57:59 +00:00
parent 7fa666b909
commit 248d5fd870
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2009-11-01 Michel Hermier <michel.hermier@gmail.com>
* src/su.c: Set the default ENV_SUPATH to
/sbin:/bin:/usr/sbin:/usr/bin (i.e. PATH when no ENV_SUPATH is
specified).
2009-10-15 Thorsten Kukuk <kukuk@suse.de>
* src/faillog.c, man/faillog.8.xml: Harmonize long option in code

View File

@ -869,7 +869,7 @@ int main (int argc, char **argv)
cp = getdef_str ((pwent.pw_uid == 0) ? "ENV_SUPATH" : "ENV_PATH");
if (NULL == cp) {
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, '=') != NULL) {
addenv (cp, NULL);
} else {