From ad8e5ee2f8942b83c88f450f37d56b7624359dea Mon Sep 17 00:00:00 2001 From: sp4rkie Date: Sun, 15 Oct 2017 00:59:29 +0200 Subject: [PATCH] fix #590 (#1591) --- packages/busybox/crontab.c.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/busybox/crontab.c.patch b/packages/busybox/crontab.c.patch index ae4ada259..12247a47a 100644 --- a/packages/busybox/crontab.c.patch +++ b/packages/busybox/crontab.c.patch @@ -14,3 +14,13 @@ diff -u -r ../busybox-1.22.1/miscutils/crontab.c ./miscutils/crontab.c ptr = getenv("VISUAL"); if (!ptr) { ptr = getenv("EDITOR"); +@@ -168,7 +168,8 @@ + } + close_on_exec_on(src_fd); /* don't want editor to see this fd */ + edit_file(pas, tmp_fname); +- /* fall through */ ++ xrename(tmp_fname, pas->pw_name); ++ break; + + case 0: /* Replace (no -l, -e, or -r were given) */ + new_fname = xasprintf("%s.new", pas->pw_name);