Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 189215

Summary: ncompress does not display statistics when compressing 0 length files
Product: Red Hat Enterprise Linux 4 Reporter: David Kovalsky <dkovalsk>
Component: ncompressAssignee: Peter Vrabec <pvrabec>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: medium    
Version: 4.0CC: benl, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHSA-2006-0663 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-12 16:47:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 201655    
Attachments:
Description Flags
this patch fix both #189215 and #1892156 none

Description David Kovalsky 2006-04-18 13:34:52 UTC
Description of problem:
ncompress does not display statistics and compression results in verbose mode
when operating on 0 length files, actually it only prints file name but nothing else

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:
$ touch foo
$ compress -v foo


  
Actual results:
foo:
# (without \n)

Expected results:
foo: No compression -- foo unchanged

Additional info:
$ echo jkl>bar
$ compress -v bar
bar: No compression -- bar unchanged

$ touch foo
$ compress -v foo
foo:
# (without \n)

works fine with the -f parameter
$ touch foo
$ compres -fv foo
foo:  -- replaced with foo.Z Compression: 100.00%

Comment 1 Peter Vrabec 2006-04-21 11:43:20 UTC
Created attachment 128078 [details]
this patch fix both #189215 and #1892156

Comment 10 Red Hat Bugzilla 2006-09-12 16:47:15 UTC
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