Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Hays <ianha@microsoft.com>2017-04-18 21:22:13 +0300
committerIan Hays <ianha@microsoft.com>2017-04-18 21:30:10 +0300
commitefd10d9d156e0d44be2a81adcaf2fb8e0e3eee73 (patch)
treedf12cdc877451bd5fc033469313e4daf94c7b243 /external
parentb43b4df2e0e2182154bb0f425cb4a61bc1269828 (diff)
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.
Diffstat (limited to 'external')
-rw-r--r--external/test-runtime/XUnit.Runtime.depproj2
1 files changed, 1 insertions, 1 deletions
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 @@
<Version>2.5.0</Version>
</PackageReference>
<PackageReference Include="System.IO.Compression.TestData">
- <Version>1.0.4-prerelease</Version>
+ <Version>1.0.5-prerelease</Version>
</PackageReference>
<PackageReference Include="System.IO.Packaging.TestData">
<Version>1.0.0-prerelease</Version>