Tizen 2.0 Release
[external/tizen-coreutils.git] / packaging / sh-utils-1.16-paths.patch
1 --- sh-utils-1.16/src/su.c.badpaths     Mon Apr 14 14:26:55 1997
2 +++ sh-utils-1.16/src/su.c      Sun Aug 17 14:11:31 EDT 2003
3 @@ -147,6 +147,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 "/usr/local/bin:/bin:/usr/bin"
13 +#define DEFAULT_ROOT_LOGIN_PATH \
14 +    "/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
15 +
16  /* The shell to run if none is given in the user's passwd entry.  */
17  #define DEFAULT_SHELL "/bin/sh"
18