summaryrefslogtreecommitdiff
path: root/libarchive/archive_entry_private.h
diff options
context:
space:
mode:
authorMartin Matuska <martin@matuska.org>2019-04-15 01:50:29 +0200
committerMartin Matuska <martin@matuska.org>2019-04-15 23:36:06 +0200
commitb0ed582e68fe6e474d321934d29b0f229c0feb9f (patch)
tree04d67b7fa3d5631736f850a1aead1dbe88e4f30a /libarchive/archive_entry_private.h
parent19bd077987ff26a4cb108edde5eaf970837aa1f0 (diff)
downloadlibarchive-b0ed582e68fe6e474d321934d29b0f229c0feb9f.tar.gz
Windows symlinks: new functions and extended tar header
New functions: archive_entry_symlink_type() archive_entry_set_symlink_type() Suppoted value constants: AE_SYMLINK_TYPE_UNDEFINED AE_SYMLINK_TYPE_FILE AE_SYMLINK_TYPE_DIRECTORY New extended tar header: LIBARCHIVE.symlinktype The function archive_entry_symlink_type() retrieves and the function archive_entry_set_symlink_type() sets the symbolic link type of an archive entry. The information about the symbolic link type is required to properly restore symbolic links on Microsoft Windows. If the symlink type is set to AE_SYMLINK_TYPE_FILE or AE_SYMLINK_TYPE_DIRECTORY and a tar archive is written, an extended tar header LIBARCHIVE.symlinktype is stored with the value "file" or "dir". When reading symbolic links on Windows, the link type is automatically stored in the archive_entry structure. On unix systems, the symlink type has no effect when reading or writing symbolic links.
Diffstat (limited to 'libarchive/archive_entry_private.h')
-rw-r--r--libarchive/archive_entry_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libarchive/archive_entry_private.h b/libarchive/archive_entry_private.h
index c69233e6..3d569bbf 100644
--- a/libarchive/archive_entry_private.h
+++ b/libarchive/archive_entry_private.h
@@ -176,6 +176,9 @@ struct archive_entry {
/* Miscellaneous. */
char strmode[12];
+
+ /* Symlink type support */
+ int ae_symlink_type;
};
#endif /* ARCHIVE_ENTRY_PRIVATE_H_INCLUDED */