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:
parent
7fa666b909
commit
248d5fd870
@ -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
|
||||
|
2
src/su.c
2
src/su.c
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user