termux-packages/packages/mailutils/libmailutils-diag-bt.c.patch
xtkoba 41e07e5b2f
mailutils: Fix hardcoded paths (#8121)
* mailutils: Fix hardcoded paths

* mailutils: Bump revision
2021-12-02 15:52:57 +05:30

21 lines
533 B
Diff

--- a/libmailutils/diag/bt.c
+++ b/libmailutils/diag/bt.c
@@ -45,7 +45,7 @@
if (!mu_program_name)
abort ();
- sprintf (fname, "/tmp/mailutils.%s.%lu",
+ sprintf (fname, "@TERMUX_PREFIX@/tmp/mailutils.%s.%lu",
mu_program_name, (unsigned long) master_pid);
pid = fork ();
@@ -67,7 +67,7 @@
dup2 (fd, 2);
close (fd);
- argv[0] = "/usr/bin/gdb";
+ argv[0] = "@TERMUX_PREFIX@/bin/gdb";
argv[1] = (char*) mu_full_program_name;
sprintf (buf, "%lu", (unsigned long) master_pid);
argv[2] = buf;