notmuch: Update from 0.26.1 to 0.26.2
[termux-packages] / packages / busybox / crontab.c.patch
CommitLineData
59f0d218
FF
1diff -u -r ../busybox-1.22.1/miscutils/crontab.c ./miscutils/crontab.c
2--- ../busybox-1.22.1/miscutils/crontab.c 2014-01-09 19:15:44.000000000 +0100
3+++ ./miscutils/crontab.c 2014-07-01 09:47:30.000000000 +0200
4@@ -40,10 +40,12 @@
5
6 /* CHILD - change user and run editor */
7 /* initgroups, setgid, setuid */
8+#ifndef __ANDROID__
9 change_identity(pas);
10 setup_environment(pas->pw_shell,
11 SETUP_ENV_CHANGEENV | SETUP_ENV_TO_TMP,
12 pas);
13+#endif
14 ptr = getenv("VISUAL");
15 if (!ptr) {
16 ptr = getenv("EDITOR");
ad8e5ee2 17@@ -168,7 +168,8 @@
18 }
19 close_on_exec_on(src_fd); /* don't want editor to see this fd */
20 edit_file(pas, tmp_fname);
21- /* fall through */
22+ xrename(tmp_fname, pas->pw_name);
23+ break;
24
25 case 0: /* Replace (no -l, -e, or -r were given) */
26 new_fname = xasprintf("%s.new", pas->pw_name);