termux-packages/packages/nodejs/lib-os.js.patch

13 lines
503 B
Diff

diff '--color=auto' -uNr node-v17.8.0.orig/lib/os.js node-v17.8.0/lib/os.js
--- node-v17.8.0.orig/lib/os.js 2022-03-26 22:11:04.145459285 +0530
+++ node-v17.8.0/lib/os.js 2022-03-26 22:12:19.585459257 +0530
@@ -183,7 +183,7 @@
path = safeGetenv('TMPDIR') ||
safeGetenv('TMP') ||
safeGetenv('TEMP') ||
- '/tmp';
+ '@TERMUX_PREFIX@/tmp';
if (path.length > 1 && StringPrototypeEndsWith(path, '/'))
path = StringPrototypeSlice(path, 0, -1);
}