Bug 12351

Summary: lzma compression broken
Product: Busybox Reporter: LLaq2YZE <cognugeyde>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED WORKSFORME    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description LLaq2YZE 2019-11-26 01:06:14 UTC
BusyBox prints help text instead of compressing the file:


$ busybox lzma myfile 
BusyBox v1.31.1 () multi-call binary.

Usage: lzma -d [-cfk] [FILE]...

Decompress FILE (or stdin)

        -d      Decompress
        -c      Write to stdout
        -f      Force
        -k      Keep input files


I'd expect that BusyBox creates myfile.lzma and exits without error.
Comment 1 Denys Vlasenko 2019-11-29 16:43:45 UTC
bbox does not support lzma *compression*, it can only decompress. Help text shows that -d option is mandatory:

$ busybox lzma myfile 
BusyBox v1.31.1 () multi-call binary.

Usage: lzma -d [-cfk] [FILE]...

Decompress FILE (or stdin)

        -d      Decompress