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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to