diff options
author | Pascal Bellard <pascal.bellard@ads-lu.com> | 2012-06-12 13:21:02 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-06-12 13:21:02 +0200 |
commit | 70fc8c17e2d032f34162f7abc3e65a67c0ff272a (patch) | |
tree | b2a4b1b2f6d52b01056e4601aca1c676e7f0f80f /include | |
parent | 588e284f53da2dc5c58f3d1b9efacd6e9061baf1 (diff) |
su: do not change to home dir unless -l
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 5e5c8c7e8..322a28cab 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -1286,6 +1286,7 @@ int sd_listen_fds(void); #define SETUP_ENV_CHANGEENV (1 << 0) #define SETUP_ENV_CLEARENV (1 << 1) #define SETUP_ENV_TO_TMP (1 << 2) +#define SETUP_ENV_NO_CHDIR (1 << 4) extern void setup_environment(const char *shell, int flags, const struct passwd *pw) FAST_FUNC; extern int correct_password(const struct passwd *pw) FAST_FUNC; /* Returns a malloced string */ |