diff options
author | Rob Landley <rob@landley.net> | 2019-04-05 13:59:38 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-04-05 13:59:38 -0500 |
commit | 6a8a4f7d4b4112b0c93fa435be71baaed3d51519 (patch) | |
tree | f54aace04acf1365d27ffe13b319e2c4f2fa6759 /toys | |
parent | 2b392761a7b75c681e94e053afd4493f8e95da93 (diff) | |
download | toybox-6a8a4f7d4b4112b0c93fa435be71baaed3d51519.tar.gz |
tar: Fix -O
Diffstat (limited to 'toys')
-rw-r--r-- | toys/pending/tar.c | 2 |
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(); } |