Bug 12136 - 'tar x -O -v' mixes verbose messages with extracted content
Summary: 'tar x -O -v' mixes verbose messages with extracted content
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.31.x
Hardware: All Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-22 20:35 UTC by dispose
Modified: 2019-08-22 20:35 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dispose 2019-08-22 20:35:43 UTC
try

docker run --rm -ti busybox   (or alpine with busybox 1.28.x)

> cd /etc
> tar cvfz /test.tgz group
> tar x -Oz -v -f  /a.tgz  > /tmp/groups-ex
> # tar prints no messages here
> cat /tmp/groups-ex
root:x:0:
......
nogroup:x:65534:
group
> 
# text group was stored in the file


expected behaviour: 
> tar x -Oz -v -f  /a.tgz  > /tmp/groups-ex
prints 'group' on the screen, extracted file goes into the /tmp/groups-ex

Seems logic is present in tar.c#447, but it does not work as expected.