mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-13 03:00:31 +00:00
12 lines
466 B
Diff
12 lines
466 B
Diff
--- a/src/libsys.scm
|
|
+++ b/src/libsys.scm
|
|
@@ -447,7 +447,7 @@
|
|
;; potential security risk. We mimic it's behavior by mkstemp() if possible.
|
|
(define-cproc sys-tmpnam ()
|
|
(.if "HAVE_MKSTEMP"
|
|
- (let* ([nam::(.array char [*]) "/tmp/fileXXXXXX"] [fd::int])
|
|
+ (let* ([nam::(.array char [*]) "@TERMUX_PREFIX@/tmp/fileXXXXXX"] [fd::int])
|
|
(SCM_SYSCALL fd (mkstemp nam))
|
|
(when (< fd 0) (Scm_SysError "mkstemp failed"))
|
|
(close fd)
|