From efd10d9d156e0d44be2a81adcaf2fb8e0e3eee73 Mon Sep 17 00:00:00 2001 From: Ian Hays Date: Tue, 18 Apr 2017 11:22:13 -0700 Subject: Expose the ExternalAttributes field in ZipArchive The ExternalFileAttributes field of a ZipArchiveEntry is currently hidden within the implementation and not accessible. This has been fine in the Windows world since it's not used but it is used by Unix's zip/unzip programs to store file permissions of an entry. As it currently stands, there is no way to carry Unix RWX permissions within a zip, so at unzip time the unzipper has to guess at permissions and manually chmod the entries. This PR simply exposes the raw field so that it may be used in any circumstance that requires access to the field. Tests are added to ensure that this field is set, read, and roundtrips properly with zips created from other common programs which use the field. --- external/test-runtime/XUnit.Runtime.depproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'external/test-runtime/XUnit.Runtime.depproj') diff --git a/external/test-runtime/XUnit.Runtime.depproj b/external/test-runtime/XUnit.Runtime.depproj index a0a7745a41..9b20236de4 100644 --- a/external/test-runtime/XUnit.Runtime.depproj +++ b/external/test-runtime/XUnit.Runtime.depproj @@ -59,7 +59,7 @@ 2.5.0 - 1.0.4-prerelease + 1.0.5-prerelease 1.0.0-prerelease -- cgit v1.2.3