From: Michihiro NAKAJIMA Date: Thu, 3 Dec 2009 12:34:11 +0000 (-0500) Subject: Add archive_hash.h into libarchive/CMakefile.txt X-Git-Tag: v2.8.0~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b63f60426299e77f87efb1790fd587129bdf5166;p=thirdparty%2Flibarchive.git Add archive_hash.h into libarchive/CMakefile.txt SVN-Revision: 1694 --- diff --git a/libarchive/CMakeLists.txt b/libarchive/CMakeLists.txt index ce3451ad2..ed70fdfe5 100644 --- a/libarchive/CMakeLists.txt +++ b/libarchive/CMakeLists.txt @@ -23,6 +23,7 @@ SET(libarchive_SOURCES archive_entry_stat.c archive_entry_strmode.c archive_entry_xattr.c + archive_hash.h archive_platform.h archive_private.h archive_read.c diff --git a/tar/tree.c b/tar/tree.c index da29c5669..d77ba9c56 100644 --- a/tar/tree.c +++ b/tar/tree.c @@ -738,9 +738,11 @@ int tree_current_is_physical_link(struct tree *t) { #if defined(_WIN32) && !defined(__CYGWIN__) +#if defined(IO_REPARSE_TAG_SYMLINK) if (t->findData) return ((t->findData->dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) && (t->findData->dwReserved0 == IO_REPARSE_TAG_SYMLINK)); +#endif return (0); #else const struct stat *st = tree_current_lstat(t);