mirror of
https://github.com/termux/termux-packages
synced 2024-06-26 22:17:08 +00:00
f16e59f244
Signed-off-by: Kevin Williams <admin@utermux.dev>
12 lines
345 B
Diff
12 lines
345 B
Diff
--- ./src/Util.cpp.orig 2022-10-18 02:11:11.000000000 +0800
|
|
+++ ./src/Util.cpp 2022-10-18 12:13:33.329999639 +0800
|
|
@@ -738,7 +738,7 @@
|
|
unlink(newpath.c_str());
|
|
|
|
#ifndef _WIN32
|
|
- if (link(oldpath.c_str(), newpath.c_str()) != 0) {
|
|
+ if (symlink(oldpath.c_str(), newpath.c_str()) != 0) {
|
|
throw core::Error(strerror(errno));
|
|
}
|
|
#else
|