Browse Source

fix mktemp

ruki 1 năm trước cách đây
mục cha
commit
a317e1d9d2
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      configure

+ 2 - 1
configure

@@ -202,8 +202,9 @@ _os_tryrm() {
 }
 
 # get temporary file
+# https://github.com/xmake-io/xmake/issues/5464
 _os_tmpfile() {
-    _ret=$(mktemp)
+    _ret=$(mktemp "${TMPDIR-/tmp}/tmp.XXXXXXXX")
 }
 
 # try run program