Files
termux-packages/packages/swtpm/src-swtpm_setup-swtpm.c.patch
termux-pacman-bot 360e1918d1 new package: swtpm
2022-11-30 17:32:13 +00:00

12 lines
332 B
Diff

--- a/src/swtpm_setup/swtpm.c
+++ b/src/swtpm_setup/swtpm.c
@@ -70,7 +70,7 @@
unsigned ctr;
int pidfile_fd;
int ret = 1;
- char pidfile[] = "/tmp/.swtpm_setup.pidfile.XXXXXX";
+ char pidfile[] = "@TERMUX_PREFIX@/tmp/.swtpm_setup.pidfile.XXXXXX";
pidfile_fd = mkstemp(pidfile);
if (pidfile_fd < 0) {