Bug 11386

Summary: busybox xz description is printed when busybox tar pipes into it
Product: Busybox Reporter: e5ten.arch
Component: OtherAssignee: unassigned
Status: RESOLVED INVALID    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: My .config

Description e5ten.arch 2018-10-10 14:02:10 UTC
Created attachment 7806 [details]
My .config

Expect no output if operation is successful, like GNU tar and bsdtar
Actual output:
>e5ten@localhost:~/tartest$ busybox tar cfJ bb.tar.xz bb
>BusyBox v1.30.0.git () multi-call binary.
>
>Usage: xz -d [-cfk] [FILE]...
>
>Decompress FILE (or stdin)
>
>    -d  Decompress
>    -c  Write to stdout
>    -f  Force
>    -k  Keep input files
Comment 1 Denys Vlasenko 2018-10-31 11:28:50 UTC
This is not a bug.

Creation of .tar.xz files requires xz _compressor_.

Busybox's "xz" is not a full tool - it contains only decompression code (and thus requires -d option to be always specified).

Install fully-functional xz.