cvsdist de6548f
--- sh-utils-1.16/src/su.c.badpaths	Mon Apr 14 14:26:55 1997
cvsdist 256d452
+++ sh-utils-1.16/src/su.c	Sun Aug 17 14:11:31 EDT 2003
cvsdist de6548f
@@ -147,6 +147,15 @@
cvsdist de6548f
 #define DEFAULT_ROOT_LOGIN_PATH "/usr/ucb:/bin:/usr/bin:/etc"
cvsdist de6548f
 #endif
cvsdist de6548f
 
cvsdist de6548f
+/* The default paths which get set are both bogus and oddly influenced
cvsdist de6548f
+   by <paths.h> and -D on the commands line. Just to be clear, we'll set
cvsdist de6548f
+   these explicitly. -ewt */
cvsdist de6548f
+#undef DEFAULT_LOGIN_PATH
cvsdist de6548f
+#undef DEFAULT_ROOT_LOGIN_PATH
cvsdist 256d452
+#define DEFAULT_LOGIN_PATH "/usr/local/bin:/bin:/usr/bin"
cvsdist de6548f
+#define DEFAULT_ROOT_LOGIN_PATH \
cvsdist 256d452
+    "/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
cvsdist de6548f
+
cvsdist de6548f
 /* The shell to run if none is given in the user's passwd entry.  */
cvsdist de6548f
 #define DEFAULT_SHELL "/bin/sh"
cvsdist de6548f