+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
* 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.
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);
<!--
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
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>