Bug 12351 - lzma compression broken
Summary: lzma compression broken
Status: RESOLVED WORKSFORME
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-26 01:06 UTC by LLaq2YZE
Modified: 2019-11-29 16:43 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 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