diff --git a/xml/System.Formats.Tar/TarFile.xml b/xml/System.Formats.Tar/TarFile.xml
index 78eee8f885b..7849eeac6ad 100644
--- a/xml/System.Formats.Tar/TarFile.xml
+++ b/xml/System.Formats.Tar/TarFile.xml
@@ -223,6 +223,7 @@
to overwrite files and directories in ; to avoid overwriting, and throw if any files or directories are found with existing names.
Extracts the contents of a stream that represents a tar archive into the specified directory.
+ If a symbolic link or junction in the tar archive results in a file being extracted outside the specified , an is thrown to ensure extraction remains within the same directory.
Files of type , , or can only be extracted in Unix platforms.
Elevation is required to extract a or to disk.
@@ -273,6 +274,7 @@ Extracting one of the tar entries would have resulted in a file outside the spec
to overwrite files and directories in ; to avoid overwriting, and throw if any files or directories are found with existing names.
Extracts the contents of a tar file into the specified directory.
+ If a symbolic link or junction in the tar archive results in a file being extracted outside the specified , an is thrown to ensure extraction remains within the same directory.
Files of type , , or can only be extracted in Unix platforms.
Elevation is required to extract a or to disk.
@@ -322,6 +324,7 @@ Extracting one of the tar entries would have resulted in a file outside the spec
Asynchronously extracts the contents of a stream that represents a tar archive into the specified directory.
A task that represents the asynchronous extraction operation.
+ If a symbolic link or junction in the tar archive results in a file being extracted outside the specified , an is thrown to ensure extraction remains within the same directory.
Files of type , , or can only be extracted in Unix platforms.
Elevation is required to extract a or to disk.
This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -376,6 +379,7 @@ Extracting one of the tar entries would have resulted in a file outside the spec
Asynchronously extracts the contents of a tar file into the specified directory.
A task that represents the asynchronous extraction operation.
+ If a symbolic link or junction in the tar archive results in a file being extracted outside the specified , an is thrown to ensure extraction remains within the same directory.
Files of type , , or can only be extracted in Unix platforms.
Elevation is required to extract a or to disk.
This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
diff --git a/xml/System.IO.Compression/ZipFile.xml b/xml/System.IO.Compression/ZipFile.xml
index 493bcc75a2e..a6063c04b99 100644
--- a/xml/System.IO.Compression/ZipFile.xml
+++ b/xml/System.IO.Compression/ZipFile.xml
@@ -1021,6 +1021,7 @@ An I/O error occurred while opening a file to be archived.
This method creates the specified directory and all subdirectories. The destination directory cannot already exist.
Exceptions related to validating the paths in the or the files in the zip archive contained in parameters are thrown before extraction. Otherwise, if an error occurs during extraction, the archive remains partially extracted.
Each extracted file has the same relative path to the directory specified by as its source entry has to the root of the archive.
+ If an entry in the zip archive is a symbolic link, it's extracted as a regular folder since symbolic link information isn't preserved in the ZIP format.
If a file to be archived has an invalid last modified time, the first date and time representable in the zip timestamp format (midnight on January 1, 1980) will be used.
is , contains only white space, or contains at least one invalid character.
@@ -1100,6 +1101,8 @@ An archive entry was compressed by using a compression method that isn't support
## Remarks
This method creates the specified directory and all subdirectories. The destination directory cannot already exist. Exceptions related to validating the paths in the `destinationDirectoryName` or `sourceArchiveFileName` parameters are thrown before extraction. Otherwise, if an error occurs during extraction, the archive remains partially extracted. Each extracted file has the same relative path to the directory specified by `destinationDirectoryName` as its source entry has to the root of the archive.
+ If an entry in the zip archive is a symbolic link, it's extracted as a regular folder since symbolic link information isn't preserved in the ZIP format.
+
## Examples
This example shows how to create and extract a zip archive by using the class. It compresses the contents of a folder into a zip archive and extracts that content to a new folder. To use the class, you must reference the `System.IO.Compression.FileSystem` assembly in your project.
@@ -1174,6 +1177,7 @@ An archive entry was compressed by using a compression method that isn't support
This method creates the specified directory and all subdirectories. The destination directory cannot already exist.
Exceptions related to validating the paths in the or the files in the zip archive contained in parameters are thrown before extraction. Otherwise, if an error occurs during extraction, the archive remains partially extracted.
Each extracted file has the same relative path to the directory specified by as its source entry has to the root of the archive.
+ If an entry in the zip archive is a symbolic link, it's extracted as a regular folder since symbolic link information isn't preserved in the ZIP format.
If a file to be archived has an invalid last modified time, the first date and time representable in the zip timestamp format (midnight on January 1, 1980) will be used.
is , contains only white space, or contains at least one invalid character.
@@ -1330,6 +1334,8 @@ Each entry will be extracted such that the extracted file has the same relative
The `sourceArchiveFileName` and `destinationDirectoryName` parameters accept both relative and absolute paths. A relative path is interpreted as relative to the current working directory.
+If an entry in the zip archive is a symbolic link, it's extracted as a regular folder since symbolic link information isn't preserved in the ZIP format.
+
If a file to be archived has an invalid last modified time, the first date and time representable in the zip timestamp format (midnight on January 1, 1980) will be used.
]]>
@@ -1436,6 +1442,8 @@ A has been compressed usi
This method creates the specified directory and all subdirectories, if necessary. Exceptions related to validating the paths in the `destinationDirectoryName` or `sourceArchiveFileName` parameters are thrown before extraction. Otherwise, if an error occurs during extraction, the archive remains partially extracted. Each extracted file has the same relative path to the directory specified by `destinationDirectoryName` as its source entry has to the root of the archive.
+If an entry in the zip archive is a symbolic link, it's extracted as a regular folder since symbolic link information isn't preserved in the ZIP format.
+
If `entryNameEncoding` is set to a value other than `null`, entry names and comments are decoded according to the following rules:
- For entries where the language encoding flag (in the general-purpose bit flag of the local file header) is not set, the entry names and comments are decoded by using the specified encoding.
@@ -1526,6 +1534,7 @@ If `entryNameEncoding` is set to `null`, entry names and comments are decoded ac
This method creates the specified directory and all subdirectories. The destination directory cannot already exist.
Exceptions related to validating the paths in the or the files in the zip archive contained in parameters are thrown before extraction. Otherwise, if an error occurs during extraction, the archive remains partially extracted.
Each extracted file has the same relative path to the directory specified by as its source entry has to the root of the archive.
+ If an entry in the zip archive is a symbolic link, it's extracted as a regular folder since symbolic link information isn't preserved in the ZIP format.
If a file to be archived has an invalid last modified time, the first date and time representable in the zip timestamp format (midnight on January 1, 1980) will be used.
is , contains only white space, or contains at least one invalid character.
@@ -1622,6 +1631,8 @@ An archive entry was compressed by using a compression method that isn't support
The `sourceArchiveFileName` and `destinationDirectoryName` parameters accept both relative and absolute paths. A relative path is interpreted as relative to the current working directory.
+ If an entry in the zip archive is a symbolic link, it's extracted as a regular folder since symbolic link information isn't preserved in the ZIP format.
+
If a file to be archived has an invalid last modified time, the first date and time representable in the zip timestamp format (midnight on January 1, 1980) will be used.
]]>