diff options
author | Martin Matuska <martin@matuska.org> | 2021-08-21 01:39:31 +0200 |
---|---|---|
committer | Martin Matuska <martin@matuska.org> | 2021-08-21 02:53:33 +0200 |
commit | 5e646b890fb3c59ef6f94221ef8ef9ae62a8a9d6 (patch) | |
tree | c5d40b1f79737c55f3d6d4b6d2cdb14c835762b5 /build | |
parent | c6f17a04481f265b4eaca8e3fa586d7ba2461a35 (diff) | |
download | libarchive-5e646b890fb3c59ef6f94221ef8ef9ae62a8a9d6.tar.gz |
Fix extracting hardlinks to symlinks
On platforms that support the linkat(2) function we can safely
write hardlinks to symlinks as linkat(2) does not follow symlinks
by default.
Fixes #1044
Diffstat (limited to 'build')
-rw-r--r-- | build/cmake/config.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build/cmake/config.h.in b/build/cmake/config.h.in index ff629f9c..5ddd2f33 100644 --- a/build/cmake/config.h.in +++ b/build/cmake/config.h.in @@ -744,6 +744,9 @@ typedef uint64_t uintmax_t; /* Define to 1 if you have the `link' function. */ #cmakedefine HAVE_LINK 1 +/* Define to 1 if you have the `linkat' function. */ +#cmakedefine HAVE_LINKAT 1 + /* Define to 1 if you have the <linux/fiemap.h> header file. */ #cmakedefine HAVE_LINUX_FIEMAP_H 1 |