Merge pull request #2723 from KlaraSystems/des/couldnt-visit
archive_read_disk_posix: Don't pass -1 to a function expecting errno
(cherry picked from commit bf50fe0538)
This commit is contained in:
1 parent
ab5ae538f6
commit
44681dd67f
1 file changed
+1
-1
@@ -862,7 +862,7 @@ next_entry(struct archive_read_disk *a, struct tree *t,
|
||||
tree_enter_initial_dir(t);
|
||||
return (ARCHIVE_FATAL);
|
||||
case TREE_ERROR_DIR:
|
||||
archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,
|
||||
archive_set_error(&a->archive, t->tree_errno,
|
||||
"%s: Couldn't visit directory",
|
||||
tree_current_path(t));
|
||||
tree_enter_initial_dir(t);
|
||||
|
||||
Reference in new issue
Block a user