]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Skip root directory symlink check
authorAndrew Gregory <andrew.gregory.8@gmail.com>
Fri, 15 Jan 2016 07:39:41 +0000 (02:39 -0500)
committerAndrew Gregory <andrew.gregory.8@gmail.com>
Tue, 23 Feb 2016 04:23:23 +0000 (23:23 -0500)
commit41ae0cf83bd0c144d0f4c296223341e54513eebd
tree0a0ecb99f9d5f926eeb97e0249cddee9964eda59
parentb057eb4cd42a768b0c7373e2aff25fb94898c69e
Skip root directory symlink check

The first time check_symlinks is called on an absolute path it will use
the entry pathname directly, blanking the leading slash.  This leads to
calling lstat on an empty string, which returns ENOENT, terminating the
loop early and falsely marking the path as safe.
libarchive/archive_write_disk_posix.c