mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Respect close_handles when extracting a tarball
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user