~mdw
/
termux-packages
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e23b8a1
)
fix #590 (#1591)
author
sp4rkie
<github@enxio.de>
Sat, 14 Oct 2017 22:59:29 +0000
(
00:59
+0200)
committer
Fredrik Fornwall
<fredrik@fornwall.net>
Sat, 14 Oct 2017 22:59:29 +0000
(
00:59
+0200)
packages/busybox/crontab.c.patch
patch
|
blob
|
blame
|
history
diff --git
a/packages/busybox/crontab.c.patch
b/packages/busybox/crontab.c.patch
index
ae4ada2
..
12247a4
100644
(file)
--- 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);