termux-packages/packages/openssh/misc_c.patch

14 lines
380 B
Diff
Raw Normal View History

2021-09-11 07:24:16 +02:00
diff --git a/misc.c b/misc.c
index b8d1040..1c4ce9c 100644
--- a/misc.c
+++ b/misc.c
@@ -1757,7 +1757,7 @@ mktemp_proto(char *s, size_t len)
2015-06-13 01:03:31 +02:00
if (r > 0 && (size_t)r < len)
return;
}
- r = snprintf(s, len, "/tmp/ssh-XXXXXXXXXXXX");
+ r = snprintf(s, len, "@TERMUX_PREFIX@/tmp/ssh-XXXXXXXXXXXX");
if (r < 0 || (size_t)r >= len)
2021-09-11 07:24:16 +02:00
fatal_f("template string too short");
2015-06-13 01:03:31 +02:00
}