fix problems with compressing zero-sized files (#189215, #189216)

This commit is contained in:
Peter Vrabec 2006-04-21 12:20:07 +00:00
parent dbc52d8fc4
commit 808722eeb2
2 changed files with 20 additions and 4 deletions

View File

@ -1,6 +1,6 @@
--- ncompress-4.2.4/compress42.c.zerobyteforce 2005-09-02 18:42:56.000000000 +0530
+++ ncompress-4.2.4/compress42.c 2005-09-02 18:43:55.000000000 +0530
@@ -1145,7 +1145,7 @@
--- ncompress-4.2.4/compress42.c.zerobyteforce 2006-04-14 14:18:28.000000000 +0200
+++ ncompress-4.2.4/compress42.c 2006-04-14 14:20:15.000000000 +0200
@@ -1145,10 +1145,12 @@
if (fdout != 1 && close(fdout))
write_error();
@ -9,3 +9,16 @@
{
if (remove_ofname)
{
+ if(!quiet)
+ fprintf(stderr, "No compression -- %s unchanged\n", ifname);
if (unlink(ofname)) /* Remove input file */
{
fprintf(stderr, "\nunlink error (ignored) ");
@@ -1157,6 +1159,7 @@
}
remove_ofname = 0;
+ exit_code = 2;
}
}
else

View File

@ -1,7 +1,7 @@
Summary: Fast compression and decompression utilities.
Name: ncompress
Version: 4.2.4
Release: 43.2.1
Release: 44
License: distributable
Group: Applications/File
Source: ftp://metalab.unc.edu/pub/Linux/utils/compress/ncompress-4.2.4.tar.Z
@ -69,6 +69,9 @@ rm -rf $RPM_BUILD_ROOT
%doc LZW.INFO README
%changelog
* Fri Apr 21 2006 Peter Vrabec <pvrabec@redhat.com> 4.2.4-44
- fix problems with compressing zero-sized files (#189215, #189216)
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.2.4-43.2.1
- bump again for double-long bug on ppc(64)