Commit graph

204 commits

Author SHA1 Message Date
Ingo Brückl e816f1dece Do not use locale for info output
Also, remove all thousands separators from printf formats.
2022-03-08 14:19:24 +01:00
Con Kolivas 74814b3183 Show output and progress with -P in lrz compatibility mode. 2022-02-27 21:18:47 +11:00
Con Kolivas d000920ff7 Update copyright dates for affected files. 2022-02-27 21:05:15 +11:00
Con Kolivas 41e8014d2c Add a -Q/--very-quiet option to suppress normal output to console. 2022-02-27 20:07:31 +11:00
Con Kolivas 1974d68407 Change -q to only silence progress as per documentation. 2022-02-27 18:35:10 +11:00
Con Kolivas 23407bc8f7 Revert "Fix control->suffix being deallocated as heap memory as reported by Pietro Borrello."
This reverts commit 5faf80cd53.

No longer needed without liblrzip.
2022-02-26 09:21:45 +11:00
Peter Hyman 06b1c08228 Pretty format info output. 2022-02-25 23:03:38 +11:00
Con Kolivas 5faf80cd53 Fix control->suffix being deallocated as heap memory as reported by Pietro Borrello. 2022-02-25 22:35:20 +11:00
Ville Skyttä 8aaf5be82a Exit status fixes.
Previously help and all usage errors resulted in exit status 255, which
is unconventional.

Treat help as non-error, and error with status 2 for usage errors to
match more common command behavior.

The exit status of -? changes to that of an usage error, even though it
is listed as one of the help invoking options, due to getopt_long
behavior.
2021-08-29 10:32:15 +03:00
Con Kolivas c5e0df5cf9 Update copyright notices. 2021-02-16 14:20:06 +11:00
Con Kolivas 3345a239b7 Use lz4 for compressibility testing only, which won't break existing archives, but speeds up testing slightly. This makes liblz4 a required library. 2021-02-16 09:41:14 +11:00
Con Kolivas 867ba8d629 Missing boolean needs to be set for nice to work. 2021-02-15 21:05:43 +11:00
Con Kolivas eb9e660d56 Silence nice warnings if lrzip is launched from a non-zero nice value. 2021-02-15 20:07:23 +11:00
Con Kolivas 6bc4977e9a Print version number to stdout. 2021-02-15 19:45:01 +11:00
Con Kolivas 71bbbe9e3d Graciously handle signals when in a detached state. 2021-02-15 18:47:03 +11:00
Con Kolivas 073cdb2175 Delete broken files if application is interrupted unless the keep-broken option is enabled, and return 1 as exit code on interruption. 2021-02-15 17:13:57 +11:00
Con Kolivas a0bacc90ee Encryption is not possible for stdin or stdout. 2021-02-15 15:28:46 +11:00
Con Kolivas 9f544dc372 Fail on unparsed characters after numeric arguments. 2021-02-09 15:54:54 +11:00
Con Kolivas de2930dc0a
Revert "BUGFIX: lrzip -d, -t should allow a file with or without an lrz extension and add if necessary" 2020-06-01 13:16:39 +10:00
Peter Hyman f9b127cd5a BUGFIX: lrzip -d, -t should allow a file with or without an lrz extension and add it if necessary 2020-05-28 11:43:11 -05:00
Con Kolivas 93d579a1b8 Fix misuse of static variable in a header. 2019-12-03 11:23:58 +11:00
Con Kolivas 3d7eb6fbae
Merge pull request #128 from pete4abw/conf_file_fix
fix to allow compression in lrzip.conf to be overridden by command line
2019-12-02 22:31:22 +11:00
Peter Hyman 9b20563ef5 Fixups to nice handling. Users can't normally lower niceness. 2019-11-26 04:50:31 -06:00
Peter Hyman 8eb867e5f0 fix to allow compression in lrzip.conf to be overridden by command line choice. 2019-10-27 11:17:46 -05:00
Peter Hyman 2f012cb3ea Fix to allow override of compression set in lrzip.conf 2019-06-19 05:36:21 -05:00
Con Kolivas 0e76d5d67c Silence fallthrough warning. 2018-03-09 17:27:36 +11:00
Ingo Brückl ad20a41940 Prevent lrunzip from decompressing with option 'i'
There must not be a decompression when requesting file information.
2018-03-09 15:48:33 +11:00
Ingo Brückl 6b50431410 Enable specifying the passphrase as an argument to option 'encrypt'
For various use cases it is desirable to be able to specify the
passphrase for a password protected encryption on the command line.

So allow option 'encrypt' to have an optional argument and set
control->passphrase to this argument if it is given.

Read the passphrase (and prompt for it) only from standard input
if not given on the command line.

Additionally, update documentation.

This fixes github issue #72, reported by aivanise.
2018-03-09 15:48:33 +11:00
ghost 14d95c7966 anonymous commit 2018-03-06 11:05:30 +00:00
ckolivas 4d8e60a912 Control window must be a positive value. 2017-12-18 09:08:27 +11:00
Con Kolivas 5a5c5cd425 Merge branch 'master' of github.com:ckolivas/lrzip 2016-10-17 19:53:02 +11:00
Con Kolivas 321c80f382 Add parsing of license option in compat mode and delete parsing of unused parameters where appropriate. 2016-10-17 19:50:45 +11:00
Jörg Plate ae69bc45e5 fix getopt() call for 'p' by adding the missing colon (:) 2016-09-21 01:50:37 +02:00
Ole Tange 1203a1853e main.c: Ignore --lzma. 2016-06-11 21:47:54 +02:00
Con Kolivas d05334bd86 checksum.buf should only be changed after the semaphore wait 2016-06-10 21:04:42 +10:00
Con Kolivas 7a03965214 Implement gzip compatible -r recursive option 2016-06-10 16:10:03 +10:00
Con Kolivas 8853f2e449 Add initial argument processing for recursive option 2016-06-10 12:57:34 +10:00
Con Kolivas 2021d5e862 Add one more verbose for compat mode 2016-06-09 18:14:43 +10:00
Con Kolivas 9a351d1b50 Add support for various combinations in compat mode 2016-06-09 18:02:13 +10:00
Con Kolivas bed16a4272 Cosmetic help change for compat 2015-04-16 17:23:35 +10:00
Con Kolivas fbd56ce9c7 Set STDOUT correctly in compat mode 2015-04-16 15:59:37 +10:00
Con Kolivas 3cfb993ce3 Show correct appname when called in compat mode 2015-04-16 15:18:11 +10:00
Con Kolivas efe2ce91ca Add support for progress, fast and best flags in compat mode 2015-03-13 13:58:08 +11:00
ckolivas 90c8072deb Add compatibility mode with gzip 2015-03-13 13:02:54 +11:00
Con Kolivas e6669cf156 Null terminate long options to find unhandled options 2015-03-10 14:02:51 +11:00
Con Kolivas c951b17a20 Trivial date 2015-03-10 14:00:24 +11:00
Con Kolivas 9ac3990812 Add long option support 2015-03-10 13:52:22 +11:00
Con Kolivas c14f9ccab3 Increase maxram when we abandon use of temporary input/output buffers 2015-03-03 14:15:09 +11:00
Con Kolivas 19396eb5af Merge pull request #30 from elmirjagudin/mem_limit_flag
command line option to limit memory usage
2015-02-09 09:21:09 +11:00
Chris Spiegel fb3762ee97 Clear sa_mask and sa_handler before calling sigaction(). 2015-01-31 22:51:11 -08:00