gzip stable port information

Package: gzip
Version: 1.4
Revision: 2
Source: mirror:sourceforge:fink/%n-%v.tar.gz
#Source: mirror:gnu:%n/%n-%v.tar.gz
Source-MD5: e381b8506210c794278f5527cba0e765
Essential: yes
BuildDepends: fink (>= 0.24.12-1)
Depends: base-files
ConfigureParams: --infodir=%p/share/info --mandir=%p/share/man
CompileScript: <<
gzip_cv_assembler=no ./configure %c
make all
<<
InfoTest: TestScript: make -k check || exit 2
InstallScript: <<
make -j1 install DESTDIR=%d
ln -s zcat %i/bin/gzcat
ln -s zcat.1 %i/share/man/man1/gzcat.1
<<
InfoDocs: gzip.info
DocFiles: AUTHORS COPYING ChangeLog NEWS README THANKS TODO
Description: File-compression program
DescPort: <<
<<
DescPackaging: <<
We also add some alternate names for the commands.

Previous versions by Christoph Pfisterer.
<<
License: GPL
#Homepage: http://www.gzip.org/
#Homepage: http://savannah.gnu.org/projects/gzip/
Homepage: http://www.gnu.org/software/gzip/
Maintainer: Fink Core Group

gzip stable port .patch

--- gzip-1.2.4/gzip.c Thu Aug 19 15:39:43 1993
+++ gzip-1.2.4b/gzip.c Tue Jan 8 21:44:18 2002
@@ -1005,7 +1005,14 @@
#ifdef NO_MULTIPLE_DOTS
char *dot; /* pointer to ifname extension, or NULL */
#endif
+ int max_suffix_len = (z_len > 3 ? z_len : 3);

+ /* Leave enough room in ifname or ofname for suffix: */
+ if (strlen(iname) >= sizeof(ifname) - max_suffix_len) {
+ strncpy(ifname, iname, sizeof(ifname) - 1);
+ /* last byte of ifname is already zero and never overwritten */
+ error("file name too long");
+ }
strcpy(ifname, iname);

/* If input file exists, return OK. */

gzip _unstable_ port .patch