diff options
author | Jim Meyering <jim@meyering.net> | 1996-12-19 04:20:53 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-12-19 04:20:53 +0000 |
commit | 858afc04d2d3ffe08ac9ebdf93e73bf4244d9989 (patch) | |
tree | 13d1f180fe1030d6514aa7fda9c7c127b157b4c1 /src | |
parent | 5fecd9e4d59be521010df1f43786a955da98b795 (diff) | |
download | coreutils-858afc04d2d3ffe08ac9ebdf93e73bf4244d9989.tar.xz |
[HAVE_PATHS_H]: Include <paths.h>.
[_PATH_DEFPATH]: Use this to define DEFAULT_LOGIN_PATH.
[_PATH_DEFPATH_ROOT]: Use this to define DEFAULT_ROOT_LOGIN_PATH.
From Rik Faith.
Diffstat (limited to 'src')
-rw-r--r-- | src/su.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -114,11 +114,23 @@ uid_t getuid (); #include "error.h" +#ifdef HAVE_PATHS_H +#include <paths.h> +#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 /* 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 /* The shell to run if none is given in the user's passwd entry. */ #define DEFAULT_SHELL "/bin/sh" |