termux-packages/packages/gopher/gopher-download.c.patch

14 lines
347 B
Diff
Raw Normal View History

2022-03-04 02:39:46 +01:00
--- a/gopher/download.c
+++ b/gopher/download.c
@@ -271,8 +271,8 @@
return;
}
#else
- if (chdir("/tmp")!=0) {
- CursesErrorMsg(Gtxt("Can't write to the /tmp directory!",70));
+ if (chdir("@TERMUX_PREFIX@/tmp")!=0) {
+ CursesErrorMsg(Gtxt("Can't write to the @TERMUX_PREFIX@/tmp directory!",70));
return;
}
#endif