Respect close_handles when extracting a tarball

This commit is contained in:
Jarred Sumner
2021-12-21 17:49:36 -08:00
parent 185a985a85
commit 76eeb5df42

View File

@@ -596,6 +596,7 @@ pub const Archive = struct {
},
}
};
defer if (comptime close_handles) file.close();
count += 1;
_ = C.fchmod(file.handle, lib.archive_entry_perm(entry));