aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-02-24 16:10:09 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-02-26 09:31:40 +0100
commit99709ab03387ca623e3fc1cac69d242ed44da45c (patch)
treede266d18b15ab43efc0c46dd72f9d926db129c13 /include
parent7e7728cd66482f6898e3896bf05a12f0f8137e79 (diff)
downloadbusybox-w32-99709ab03387ca623e3fc1cac69d242ed44da45c.tar.gz
busybox-w32-99709ab03387ca623e3fc1cac69d242ed44da45c.tar.bz2
busybox-w32-99709ab03387ca623e3fc1cac69d242ed44da45c.zip
crontab: use setup_environment
function old new delta setup_environment 184 198 +14 .rodata 131770 131747 -23 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 14/-23) Total: -9 bytes Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 9e3c18407..9d99b0d1a 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1142,6 +1142,7 @@ extern void selinux_or_die(void) FAST_FUNC;
1142extern int restricted_shell(const char *shell) FAST_FUNC; 1142extern int restricted_shell(const char *shell) FAST_FUNC;
1143 1143
1144/* setup_environment: 1144/* setup_environment:
1145 * if chdir pw->pw_dir: ok: else if to_tmp == 1: goto /tmp else: goto / or die
1145 * if clear_env = 1: cd(pw->pw_dir), clear environment, then set 1146 * if clear_env = 1: cd(pw->pw_dir), clear environment, then set
1146 * TERM=(old value) 1147 * TERM=(old value)
1147 * USER=pw->pw_name, LOGNAME=pw->pw_name 1148 * USER=pw->pw_name, LOGNAME=pw->pw_name
@@ -1155,7 +1156,9 @@ extern int restricted_shell(const char *shell) FAST_FUNC;
1155 * SHELL=shell 1156 * SHELL=shell
1156 * else does nothing 1157 * else does nothing
1157 */ 1158 */
1158extern void setup_environment(const char *shell, int clear_env, int change_env, const struct passwd *pw) FAST_FUNC; 1159#define SETUP_ENV_CHANGEENV (1<<0)
1160#define SETUP_ENV_TO_TMP (1<<1)
1161extern void setup_environment(const char *shell, int clear_env, int flags, const struct passwd *pw) FAST_FUNC;
1159extern int correct_password(const struct passwd *pw) FAST_FUNC; 1162extern int correct_password(const struct passwd *pw) FAST_FUNC;
1160/* Returns a malloced string */ 1163/* Returns a malloced string */
1161#if !ENABLE_USE_BB_CRYPT 1164#if !ENABLE_USE_BB_CRYPT