termux-packages/packages/gdb/gdb-gdbsupport-pathstuff.c.patch

22 lines
512 B
Diff
Raw Normal View History

2020-02-15 23:58:09 +01:00
diff -u -r ../gdb-9.1/gdb/gdbsupport/pathstuff.c ./gdb/gdbsupport/pathstuff.c
--- ../gdb-9.1/gdb/gdbsupport/pathstuff.c 2020-02-08 12:50:14.000000000 +0000
+++ ./gdb/gdbsupport/pathstuff.c 2020-02-15 22:37:01.888578000 +0000
@@ -262,7 +262,7 @@
if (tmp != nullptr)
return tmp;
- return "/tmp";
+ return "@TERMUX_PREFIX@/tmp";
#endif
}
@@ -273,7 +273,7 @@
{
const char *ret = getenv ("SHELL");
if (ret == NULL)
- ret = "/bin/sh";
+ ret = "@TERMUX_PREFIX@/bin/sh";
return ret;
}