diff options
author | Alexandros Theodotou | 2019-04-12 04:46:06 +0100 |
---|---|---|
committer | Alexandros Theodotou | 2019-04-12 04:46:06 +0100 |
commit | 57e56de48e5cc789fbc8f0191df99eda15cd7082 (patch) | |
tree | eff9ab61901c2bef51f298dc84bf0c06e78e874b /create_hard_link.patch | |
parent | d69f78fe5a61e7f5588077a1acfc8988870a6c68 (diff) | |
download | aur-57e56de48e5cc789fbc8f0191df99eda15cd7082.tar.gz |
add create hard link patch
Diffstat (limited to 'create_hard_link.patch')
-rw-r--r-- | create_hard_link.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/create_hard_link.patch b/create_hard_link.patch new file mode 100644 index 000000000000..f960a9fdcf9e --- /dev/null +++ b/create_hard_link.patch @@ -0,0 +1,18 @@ +diff --git a/src/util.c b/src/util.c +index 4973181..32900f7 100644 +--- a/src/util.c ++++ b/src/util.c +@@ -465,10 +465,10 @@ lilv_symlink(const char* oldpath, const char* newpath) + int ret = 0; + if (strcmp(oldpath, newpath)) { + #ifdef _WIN32 +- ret = !CreateSymbolicLink(newpath, oldpath, 0); +- if (ret) { ++ /*ret = !CreateSymbolicLink(newpath, oldpath, 0);*/ ++ /*if (ret) {*/ + ret = !CreateHardLink(newpath, oldpath, 0); +- } ++ /*}*/ + #else + ret = symlink(oldpath, newpath); + #endif |