0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-21 20:56:19 +00:00
termux-packages/disabled-packages/anacron/runjob.c.patch
TomIO e17ba66e5c
rmpkg(main/anacron) (#21805)
Anacron has received no development in 15+ years.
It's functionality is also being provided by both `cronie` and
`busybox`'s crond.
2024-10-14 10:20:46 +02:00

12 lines
351 B
Diff

--- a/runjob.c
+++ b/runjob.c
@@ -122,7 +122,7 @@
if (sigprocmask(SIG_SETMASK, &old_sigmask, NULL))
die_e("sigprocmask error");
xcloselog();
- execl("/bin/sh", "/bin/sh", "-c", jr->command, (char *)NULL);
+ execl("@TERMUX_PREFIX@/bin/sh", "@TERMUX_PREFIX@/bin/sh", "-c", jr->command, (char *)NULL);
die_e("execl() error");
}