From 6a8a4f7d4b4112b0c93fa435be71baaed3d51519 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 5 Apr 2019 13:59:38 -0500 Subject: tar: Fix -O --- toys/pending/tar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- cgit v1.2.3