aboutsummaryrefslogtreecommitdiff
path: root/miscutils/crontab.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2022-01-13 12:50:48 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2022-01-13 12:50:48 +0100
commit931c55f9e2b41473132683488820c6fb7c47506b (patch)
tree56cbfd7e7b1d85998192e5b61c132b9d4a465b8b /miscutils/crontab.c
parentb3eec1651fb02d70716caa355f49320719f74c75 (diff)
downloadbusybox-w32-931c55f9e2b41473132683488820c6fb7c47506b.tar.gz
busybox-w32-931c55f9e2b41473132683488820c6fb7c47506b.tar.bz2
busybox-w32-931c55f9e2b41473132683488820c6fb7c47506b.zip
libbb: invert the meaning of SETUP_ENV_NO_CHDIR -> SETUP_ENV_CHDIR
Double negatives are hard to grok. function old new delta login_main 986 988 +2 su_main 474 470 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 2/-4) Total: -2 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/crontab.c')
-rw-r--r--miscutils/crontab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/crontab.c b/miscutils/crontab.c
index 411a18a50..1111f4d54 100644
--- a/miscutils/crontab.c
+++ b/miscutils/crontab.c
@@ -55,8 +55,8 @@ static void edit_file(const struct passwd *pas, const char *file)
55 /* initgroups, setgid, setuid */ 55 /* initgroups, setgid, setuid */
56 change_identity(pas); 56 change_identity(pas);
57 setup_environment(pas->pw_shell, 57 setup_environment(pas->pw_shell,
58 SETUP_ENV_CHANGEENV | SETUP_ENV_TO_TMP, 58 SETUP_ENV_CHANGEENV | SETUP_ENV_TO_TMP | SETUP_ENV_CHDIR,
59 pas); 59 pas);
60 ptr = getenv("VISUAL"); 60 ptr = getenv("VISUAL");
61 if (!ptr) { 61 if (!ptr) {
62 ptr = getenv("EDITOR"); 62 ptr = getenv("EDITOR");