mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-09 13:41:55 +00:00
- Fixes https://github.com/termux/termux-packages/issues/25002 - like in https://github.com/termux/termux-packages/pull/21570/files#diff-6e39a1ccc18df46c81e623411ad6bb2d7ba8cd5dd00aceaf939bf5467d6d31ae, the file `jobs-unix.cc` has been moved again, this time to a folder named `src`
12 lines
408 B
Diff
12 lines
408 B
Diff
--- a/src/jobs-unix.cc
|
|
+++ b/src/jobs-unix.cc
|
|
@@ -31,7 +31,7 @@ void acquire_global_lock() {
|
|
if (char *dir = getenv("XDG_RUNTIME_DIR"))
|
|
path = dir + "/mold-lock"s;
|
|
else
|
|
- path = "/tmp/mold-lock-"s + getpwuid(getuid())->pw_name;
|
|
+ path = "@TERMUX_PREFIX@/tmp/mold-lock-"s + getpwuid(getuid())->pw_name;
|
|
|
|
int fd = open(path.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, 0600);
|
|
if (fd == -1)
|