]> git.ipfire.org Git - thirdparty/libarchive.git/commit
archive_read_disk_posix: Don't pass -1 to a function expecting errno 2723/head
authorDag-Erling Smørgrav <des@des.no>
Thu, 14 Aug 2025 12:36:11 +0000 (14:36 +0200)
committerDag-Erling Smørgrav <des@des.no>
Thu, 14 Aug 2025 13:29:34 +0000 (15:29 +0200)
commit02ebfb5a489ea59f393d11c737f476e365b5699d
tree8bc1187668e1c74fb2b1b831eed6db9f0df4c5ea
parent3bf1035e67404bb1ef869f1351382f89ab23a198
archive_read_disk_posix: Don't pass -1 to a function expecting errno

This fixes an unhelpful "Couldn't visit directory: Unknown error: -1" message.

Fixes: 3311bb52cbe4 ("Bring the code supporting directory traversals from bsdtar/tree.[ch] into archive_read_disk.c and modify it. Introduce new APIs archive_read_disk_open and archive_read_disk_descend.")
libarchive/archive_read_disk_posix.c