/[packages]/cauldron/coreutils/current/SOURCES/sh-utils-1.16-paths.patch
ViewVC logotype

Contents of /cauldron/coreutils/current/SOURCES/sh-utils-1.16-paths.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 128 - (show annotations) (download)
Tue Jan 4 18:25:29 2011 UTC (13 years, 3 months ago) by tmb
File size: 823 byte(s)
imported package coreutils
1 diff -Naurp coreutils-6.12/src/su.c coreutils-6.12.oden/src/su.c
2 --- coreutils-6.12/src/su.c 2008-05-26 08:40:33.000000000 +0200
3 +++ coreutils-6.12.oden/src/su.c 2008-12-21 16:09:29.000000000 +0100
4 @@ -112,6 +112,15 @@
5 # define DEFAULT_ROOT_LOGIN_PATH "/usr/ucb:/bin:/usr/bin:/etc"
6 #endif
7
8 +/* The default paths which get set are both bogus and oddly influenced
9 + by <paths.h> and -D on the commands line. Just to be clear, we'll set
10 + these explicitly. -ewt */
11 +#undef DEFAULT_LOGIN_PATH
12 +#undef DEFAULT_ROOT_LOGIN_PATH
13 +#define DEFAULT_LOGIN_PATH "/bin:/usr/bin:/usr/local/bin:/usr/bin/X11"
14 +#define DEFAULT_ROOT_LOGIN_PATH \
15 + "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11"
16 +
17 /* The shell to run if none is given in the user's passwd entry. */
18 #define DEFAULT_SHELL "/bin/sh"
19

  ViewVC Help
Powered by ViewVC 1.1.30