[Bug 236870] libarchive directory traversal gives spurious permission errors

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Mar 29 05:57:02 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236870

            Bug ID: 236870
           Summary: libarchive directory traversal gives spurious
                    permission errors
           Product: Base System
           Version: 12.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: andrew at tao11.riddles.org.uk

Created attachment 203232
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=203232&action=edit
libarchive directory traversal patch

libarchive-based utilities, notably including tar(1), fail if told to traverse
"." if the parent directory is not readable. This is caused by libarchive
trying to open ".." at the end of the traverse in order to exit the directory,
which is an obviously wrong thing to do.

Attached patch (against 12-stable) fixes this and includes a test case.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list