aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-rw-r--r--toys/pending/tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/tar.c b/toys/pending/tar.c
index 1a9293a2..31e59118 100644
--- a/toys/pending/tar.c
+++ b/toys/pending/tar.c
@@ -630,7 +630,7 @@ static void unpack_tar(struct tar_hdr *first)
skippy(TT.hdr.size);
} else {
if (FLAG(v)) printf("%s\n", TT.hdr.name);
- if (FLAG(O)) xsendfile_len(TT.fd, 0, TT.hdr.size);
+ if (FLAG(O)) xsendfile_len(TT.fd, 1, TT.hdr.size);
else if (FLAG(to_command)) extract_to_command();
else extract_to_disk();
}