Description of problem: Returns different return code when compressing (actually no compression is done because the -f parameter was not specified) 0 length files then when compressing (actually not, because the resulting file is larger, see above) small files. $ touch foo $ compress foo $ echo $? 0 $ echo jkl>bar $ compress bar $ echo $? 2 $ ll -rw-r--r-- 1 nfsnobody devqa5 4 Apr 13 04:21 bar -rw-r--r-- 1 nfsnobody devqa5 0 Apr 13 04:18 foo Same behaviour, different return code. When files are not changed (output is larger than input) then the return code (according to man pages and behavior in similar cases) should be 2. Version-Release number of selected component (if applicable): ncompress-4.2.4-40 ncompress-4.2.4-41.rhel4 How reproducible: always Steps to Reproduce: 1. $ touch foo $ compress foo $ echo $? 0 2. $ echo jkl>bar $ compress bar $ echo $? 2 Actual results: 0 Expected results: 2 Additional info:
Created attachment 128079 [details] this patch fix both #189215 and #189216
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2006-0663.html