--- 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) {