diff options
author | Alessandro Ghedini <alessandro@ghedini.me> | 2015-03-01 12:07:45 +0100 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2015-03-04 18:44:03 +0100 |
commit | 59357157706d47c365b2227739e17daba3607526 (patch) | |
tree | e0cd9555ae8549b31d64c81f45f9381f550376b1 /libarchive/archive_write_disk.3 | |
parent | fc04ba0941fed6b55fa5b90858e1104c8c937d72 (diff) | |
download | libarchive-59357157706d47c365b2227739e17daba3607526.tar.gz |
Add ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS option
This fixes a directory traversal in the cpio tool.
Diffstat (limited to 'libarchive/archive_write_disk.3')
-rw-r--r-- | libarchive/archive_write_disk.3 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libarchive/archive_write_disk.3 b/libarchive/archive_write_disk.3 index fa925cc5..a2e7afaa 100644 --- a/libarchive/archive_write_disk.3 +++ b/libarchive/archive_write_disk.3 @@ -177,6 +177,9 @@ The default is to not refuse such paths. Note that paths ending in .Pa .. always cause an error, regardless of this flag. +.It Cm ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS +Refuse to extract an absolute path. +The default is to not refuse such paths. .It Cm ARCHIVE_EXTRACT_SPARSE Scan data for blocks of NUL bytes and try to recreate them with holes. This results in sparse files, independent of whether the archive format |