* NEWS, man/login.defs.d/ENV_SUPATH.xml, libmisc/setupenv.c:
Harmonize other paths and documentation with previous change.
This commit is contained in:
parent
248d5fd870
commit
e770e87035
@ -1,3 +1,9 @@
|
||||
2009-11-01 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* NEWS, man/login.defs.d/ENV_SUPATH.xml, libmisc/setupenv.c:
|
||||
Harmonize other paths and documentation with previous
|
||||
change.
|
||||
|
||||
2009-11-01 Michel Hermier <michel.hermier@gmail.com>
|
||||
|
||||
* src/su.c: Set the default ENV_SUPATH to
|
||||
|
1
NEWS
1
NEWS
@ -11,6 +11,7 @@ shadow-4.1.4.2 -> shadow-4.1.4.3 UNRELEASED
|
||||
* When su receives a signal, wait for the child to terminate (after
|
||||
sending a SIGTERM), and kill it only if it did not terminate by itself.
|
||||
No delay will be enforced if the child cooperates.
|
||||
* Default ENV_SUPATH is /sbin:/bin:/usr/sbin:/usr/bin
|
||||
|
||||
*** translation
|
||||
* Updated Czech translation.
|
||||
|
@ -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);
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
Copyright (c) 1991 - 1993, Julianne Frances Haugh
|
||||
Copyright (c) 1991 - 1993, Chip Rosenthal
|
||||
Copyright (c) 2007 - 2008, Nicolas François
|
||||
Copyright (c) 2007 - 2009, Nicolas François
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
@ -36,7 +36,8 @@
|
||||
the superuser login. The value can be preceded by
|
||||
<replaceable>PATH=</replaceable>, or a colon separated list of paths
|
||||
(for example <replaceable>/sbin:/bin:/usr/sbin:/usr/bin</replaceable>).
|
||||
The default value is <replaceable>PATH=/bin:/usr/bin</replaceable>.
|
||||
The default value is
|
||||
<replaceable>PATH=/sbin:/bin:/usr/sbin:/usr/bin</replaceable>.
|
||||
</para>
|
||||
<!-- TODO: it can in fact be used to set any other variable-->
|
||||
</listitem>
|
||||
|
Loading…
Reference in New Issue
Block a user