aboutsummaryrefslogtreecommitdiff
path: root/miscutils/crontab.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/crontab.c')
-rw-r--r--miscutils/crontab.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/miscutils/crontab.c b/miscutils/crontab.c
index 7d5709521..5557bc491 100644
--- a/miscutils/crontab.c
+++ b/miscutils/crontab.c
@@ -32,8 +32,9 @@ static void edit_file(const struct passwd *pas, const char *file)
32 /* CHILD - change user and run editor */ 32 /* CHILD - change user and run editor */
33 /* initgroups, setgid, setuid */ 33 /* initgroups, setgid, setuid */
34 change_identity(pas); 34 change_identity(pas);
35 setup_environment(DEFAULT_SHELL, 0, 35 setup_environment(DEFAULT_SHELL,
36 SETUP_ENV_CHANGEENV | SETUP_ENV_TO_TMP, pas); 36 SETUP_ENV_CHANGEENV | SETUP_ENV_TO_TMP,
37 pas);
37 ptr = getenv("VISUAL"); 38 ptr = getenv("VISUAL");
38 if (!ptr) { 39 if (!ptr) {
39 ptr = getenv("EDITOR"); 40 ptr = getenv("EDITOR");