[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] Do not fail when 'compress' is unable to provide sufficien
From: |
Tim Kientzle |
Subject: |
Re: [Bug-tar] Do not fail when 'compress' is unable to provide sufficient compress ratio |
Date: |
Mon, 29 Apr 2013 20:46:58 -0700 |
On Apr 29, 2013, at 11:27 AM, Antonio Diaz Diaz wrote:
> Paul Eggert wrote:
>> If you look at the gzip source code you'll
>> find a number of circumstances that will
>> cause it to exit with status 2, as a warning.
>
> Then gzip's API differs from compress's API[1] (return 2 only if size
> increases and -f is not specified), and from "standard" API (only 0 means
> success).
>
> [1]http://pubs.opengroup.org/onlinepubs/9699919799/utilities/compress.html
>
> The following exit values shall be returned:
> 0 Successful completion.
> 1 An error occurred.
> 2 One or more files were not compressed because they would have
> increased in size (and the -f option was not specified).
> >2 An error occurred.
If you look at the source code for "compress", you find
that the return code 2 is *only* used when compressing
files in-place.
It does not apply when compressing stdin to stdout.
I believe GNU tar forks compressors to compress from
stdin to stdout, so this should never occur.
Tim
- Re: [Bug-tar] [PATCH] Do not fail when 'compress' is unable to provide sufficient compress ratio, (continued)
- Re: [Bug-tar] [PATCH] Do not fail when 'compress' is unable to provide sufficient compress ratio, Paul Eggert, 2013/04/26
- Re: [Bug-tar] [PATCH] Do not fail when 'compress' is unable to provide sufficient compress ratio, Pavel Raiskup, 2013/04/26
- Re: [Bug-tar] [PATCH] Do not fail when 'compress' is unable to provide sufficient compress ratio, Paul Eggert, 2013/04/26
- Re: [Bug-tar] [PATCH] Do not fail when 'compress' is unable to provide sufficient compress ratio, Pavel Raiskup, 2013/04/26
- Re: [Bug-tar] [PATCH] Do not fail when 'compress' is unable to provide sufficient compress ratio, Antonio Diaz Diaz, 2013/04/26
- Re: [Bug-tar] [PATCH] Do not fail when 'compress' is unable to provide sufficient compress ratio, Paul Eggert, 2013/04/26
- Re: [Bug-tar] [PATCH] Do not fail when 'compress' is unable to provide sufficient compress ratio, Antonio Diaz Diaz, 2013/04/28
- Re: [Bug-tar] [PATCH] Do not fail when 'compress' is unable to provide sufficient compress ratio, Pavel Raiskup, 2013/04/29
- Re: [Bug-tar] [PATCH] Do not fail when 'compress' is unable to provide sufficient compress ratio, Paul Eggert, 2013/04/29
- Re: [Bug-tar] Do not fail when 'compress' is unable to provide sufficient compress ratio, Antonio Diaz Diaz, 2013/04/29
- Re: [Bug-tar] Do not fail when 'compress' is unable to provide sufficient compress ratio,
Tim Kientzle <=
- Re: [Bug-tar] Do not fail when 'compress' is unable to provide sufficient compress ratio, Antonio Diaz Diaz, 2013/04/30
- Re: [Bug-tar] Do not fail when 'compress' is unable to provide sufficient compress ratio, Stefano Lattarini, 2013/04/30
- Re: [Bug-tar] Do not fail when 'compress' is unable to provide sufficient compress ratio, Antonio Diaz Diaz, 2013/04/30
- Re: [Bug-tar] [PATCH] Do not fail when 'compress' is unable to provide sufficient compress ratio, Paul Eggert, 2013/04/26
- [Bug-tar] [PATCH] tar: do not fail hardly when compressor just warns, Pavel Raiskup, 2013/04/27
- Re: [Bug-tar] [PATCH] tar: do not fail hardly when compressor just warns, Antonio Diaz Diaz, 2013/04/28
- Re: [Bug-tar] [PATCH] tar: do not fail hardly when compressor just warns, Pavel Raiskup, 2013/04/29
- Re: [Bug-tar] tar: do not fail hardly when compressor just warns, Antonio Diaz Diaz, 2013/04/29