summaryrefslogtreecommitdiffstats
path: root/login-utils
diff options
context:
space:
mode:
authorLudwig Nussel2010-08-09 16:02:30 +0200
committerLudwig Nussel2012-05-24 13:52:42 +0200
commita9980c85c9a33611ba3b6d04e3d754bef4c792a3 (patch)
treeef90479cd2a1f9a21b80fe4c88329b2e116d5018 /login-utils
parentlog all su attempts (diff)
downloadkernel-qcow2-util-linux-a9980c85c9a33611ba3b6d04e3d754bef4c792a3.tar.gz
kernel-qcow2-util-linux-a9980c85c9a33611ba3b6d04e3d754bef4c792a3.tar.xz
kernel-qcow2-util-linux-a9980c85c9a33611ba3b6d04e3d754bef4c792a3.zip
set sane default path
Diffstat (limited to 'login-utils')
-rw-r--r--login-utils/su.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/login-utils/su.c b/login-utils/su.c
index e97edbba3..237527ef9 100644
--- a/login-utils/su.c
+++ b/login-utils/su.c
@@ -120,18 +120,10 @@
#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"