aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-04-05 13:59:38 -0500
committerRob Landley <rob@landley.net>2019-04-05 13:59:38 -0500
commit6a8a4f7d4b4112b0c93fa435be71baaed3d51519 (patch)
treef54aace04acf1365d27ffe13b319e2c4f2fa6759
parent2b392761a7b75c681e94e053afd4493f8e95da93 (diff)
downloadtoybox-6a8a4f7d4b4112b0c93fa435be71baaed3d51519.tar.gz
tar: Fix -O
-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();
}