aboutsummaryrefslogtreecommitdiff
path: root/src/libarchive
diff options
context:
space:
mode:
Diffstat (limited to 'src/libarchive')
-rw-r--r--src/libarchive/libarchive.zig8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libarchive/libarchive.zig b/src/libarchive/libarchive.zig
index c6f01402b..3d1a00be8 100644
--- a/src/libarchive/libarchive.zig
+++ b/src/libarchive/libarchive.zig
@@ -448,7 +448,7 @@ pub const Archive = struct {
error.FileNotFound => {
const subdir = try dir.makeOpenPath(dirname, .{ .iterate = true });
defer if (comptime close_handles) subdir.close();
- break :brk try subdir.createFile(std.fs.path.basename(pathname), .{ .truncate = true });
+ break :brk try dir.createFileZ(pathname, .{ .truncate = true });
},
else => {
return err;
@@ -458,12 +458,6 @@ pub const Archive = struct {
defer if (comptime close_handles) file.close();
_ = lib.archive_read_data_into_fd(archive, file.handle);
_ = C.fchmod(file.handle, lib.archive_entry_perm(entry));
-
- // switch (status) {
- // Status.eof => break :copy_data,
- // Status.ok => {
- // else => return error.Fail,
- // }
}
},
}