0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 00:10:52 +00:00
termux-packages/packages/jove/recover.c.patch
2022-12-05 22:06:39 +00:00

24 lines
821 B
Diff

--- a/recover.c
+++ b/recover.c
@@ -942,7 +942,7 @@
last_update = ctime(&tupd);
/* Start up mail */
if ((mail_prog = getenv("JOVEMAILER")) == NULL)
- mail_prog = "/bin/mail";
+ mail_prog = "@TERMUX_PREFIX@/bin/mail";
mail_cmd = copystrs(mail_prog, pw->pw_name);
if ((r = setuid(getuid())) < 0) {
fprintf(stderr, "WARNING: %s: setuid(getuid()) failed: %s\n",
@@ -1036,9 +1036,9 @@
close(fd);
}
MailUser(&header);
- execl("/bin/mv", "mv", fp->file_data, fp->file_rec,
+ execl("@TERMUX_PREFIX@/bin/mv", "mv", fp->file_data, fp->file_rec,
RecDir, (char *)NULL);
- fprintf(stderr, "%s: cannot execl /bin/mv. %s\n", progname, strerror(errno));
+ fprintf(stderr, "%s: cannot execl @TERMUX_PREFIX@/bin/mv. %s\n", progname, strerror(errno));
exit(-1);
/*NOTREACHED*/