From 2363506e099a8e55b6010f10f71ff8ea8e1c6dfc Mon Sep 17 00:00:00 2001 From: DLL125 <134442578+DLL125@users.noreply.github.com> Date: Sun, 24 Sep 2023 10:18:54 +0200 Subject: Libzip 1.10.1 (#1209) Updated to the latest version for the VeraCrypt 1.26.6 release. --- src/Common/libzip/zip_set_archive_flag.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Common/libzip/zip_set_archive_flag.c') diff --git a/src/Common/libzip/zip_set_archive_flag.c b/src/Common/libzip/zip_set_archive_flag.c index ec6a86d0..834ef5ba 100644 --- a/src/Common/libzip/zip_set_archive_flag.c +++ b/src/Common/libzip/zip_set_archive_flag.c @@ -57,7 +57,8 @@ zip_set_archive_flag(zip_t *za, zip_flags_t flag, int value) { return 0; } - if (ZIP_IS_RDONLY(za)) { + /* Allow removing ZIP_AFL_RDONLY if manually set, not if archive was opened read-only. */ + if (za->flags & ZIP_AFL_RDONLY) { zip_error_set(&za->error, ZIP_ER_RDONLY, 0); return -1; } -- cgit v1.2.3