]> git.pld-linux.org Git - packages/util-linux.git/blame - su-paths.patch
- updated to 2.29.2 (fixes CVE-2017-2616 in su)
[packages/util-linux.git] / su-paths.patch
CommitLineData
034a23bb
JB
1--- coreutils-4.5.3/login-utils/su-common.c.orig Sun Oct 27 21:57:03 2002
2+++ coreutils-4.5.3/login-utils/su-common.c Sun Oct 27 22:15:05 2002
b7092f0d
AM
3@@ -154,6 +154,15 @@
4 # define DEFAULT_ROOT_LOGIN_PATH "/usr/ucb:/bin:/usr/bin:/etc"
5 #endif
6
7+/* The default paths which get set are both bogus and oddly influenced
8+ by <paths.h> and -D on the commands line. Just to be clear, we'll set
9+ these explicitly. -ewt */
10+#undef DEFAULT_LOGIN_PATH
11+#undef DEFAULT_ROOT_LOGIN_PATH
12+#define DEFAULT_LOGIN_PATH "/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
13+#define DEFAULT_ROOT_LOGIN_PATH \
14+ "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/X11R6/sbin"
15+
16 /* The shell to run if none is given in the user's passwd entry. */
17 #define DEFAULT_SHELL "/bin/sh"
18
This page took 0.031672 seconds and 4 git commands to generate.