diff options
author | Martin Matuska <martin@matuska.org> | 2019-04-15 01:50:29 +0200 |
---|---|---|
committer | Martin Matuska <martin@matuska.org> | 2019-04-15 23:36:06 +0200 |
commit | b0ed582e68fe6e474d321934d29b0f229c0feb9f (patch) | |
tree | 04d67b7fa3d5631736f850a1aead1dbe88e4f30a /libarchive/archive_entry_private.h | |
parent | 19bd077987ff26a4cb108edde5eaf970837aa1f0 (diff) | |
download | libarchive-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.h | 3 |
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 */ |