summaryrefslogtreecommitdiff
path: root/test_utils
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 /test_utils
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 'test_utils')
-rw-r--r--test_utils/test_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test_utils/test_main.c b/test_utils/test_main.c
index d9f3b19f..59c835ba 100644
--- a/test_utils/test_main.c
+++ b/test_utils/test_main.c
@@ -1734,7 +1734,7 @@ is_symlink(const char *file, int line,
char *s, *pn;
int ret = 0;
BYTE *indata;
- static DWORD flag = FILE_FLAG_BACKUP_SEMANTICS |
+ const DWORD flag = FILE_FLAG_BACKUP_SEMANTICS |
FILE_FLAG_OPEN_REPARSE_POINT;
/* Replace slashes with backslashes in pathname */