]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
set sane default path
authorLudwig Nussel <ludwig.nussel@suse.de>
Mon, 9 Aug 2010 14:02:30 +0000 (16:02 +0200)
committerLudwig Nussel <ludwig.nussel@suse.de>
Thu, 24 May 2012 11:52:42 +0000 (13:52 +0200)
login-utils/su.c

index e97edbba37535182c56945858e1915dac93fb0f3..237527ef9310576afa57ad8cf66dbf2f240e8382 100644 (file)
 #endif
 
 /* The default PATH for simulated logins to non-superuser accounts.  */
-#ifdef _PATH_DEFPATH
-# define DEFAULT_LOGIN_PATH _PATH_DEFPATH
-#else
-# define DEFAULT_LOGIN_PATH ":/usr/ucb:/bin:/usr/bin"
-#endif
+#define DEFAULT_LOGIN_PATH "/usr/local/bin:/bin:/usr/bin"
 
 /* The default PATH for simulated logins to superuser accounts.  */
-#ifdef _PATH_DEFPATH_ROOT
-# define DEFAULT_ROOT_LOGIN_PATH _PATH_DEFPATH_ROOT
-#else
-# define DEFAULT_ROOT_LOGIN_PATH "/usr/ucb:/bin:/usr/bin:/etc"
-#endif
+#define DEFAULT_ROOT_LOGIN_PATH "/usr/sbin:/bin:/usr/bin:/sbin"
 
 /* The shell to run if none is given in the user's passwd entry.  */
 #define DEFAULT_SHELL "/bin/sh"