set sane default path

This commit is contained in:
Ludwig Nussel 2010-08-09 16:02:30 +02:00
parent b14d022fd0
commit a9980c85c9
1 changed files with 2 additions and 10 deletions

View File

@ -120,18 +120,10 @@
#endif #endif
/* The default PATH for simulated logins to non-superuser accounts. */ /* The default PATH for simulated logins to non-superuser accounts. */
#ifdef _PATH_DEFPATH #define DEFAULT_LOGIN_PATH "/usr/local/bin:/bin:/usr/bin"
# define DEFAULT_LOGIN_PATH _PATH_DEFPATH
#else
# define DEFAULT_LOGIN_PATH ":/usr/ucb:/bin:/usr/bin"
#endif
/* The default PATH for simulated logins to superuser accounts. */ /* The default PATH for simulated logins to superuser accounts. */
#ifdef _PATH_DEFPATH_ROOT #define DEFAULT_ROOT_LOGIN_PATH "/usr/sbin:/bin:/usr/bin:/sbin"
# define DEFAULT_ROOT_LOGIN_PATH _PATH_DEFPATH_ROOT
#else
# define DEFAULT_ROOT_LOGIN_PATH "/usr/ucb:/bin:/usr/bin:/etc"
#endif
/* The shell to run if none is given in the user's passwd entry. */ /* The shell to run if none is given in the user's passwd entry. */
#define DEFAULT_SHELL "/bin/sh" #define DEFAULT_SHELL "/bin/sh"