Installation of Gzip
A buffer overflow may occur if gzip
encounters a filename over 1020 characters in length. Apply the
patch to fix this problem:
patch -Np1 -i ../gzip-&gzip-patch-version;.patch
Prepare Gzip to be compiled:
./configure --prefix=/usr
Change the default installation directory for Gzip so it will
be installed in the /bin
directory:
cp gzexe.in{,.backup} &&
sed 's%"BINDIR"%/bin%' gzexe.in.backup > gzexe.in
Continue with compiling the package:
make
Install the package:
make install
Move the Gzip binaries to the /bin directory:
mv /usr/bin/gzip /bin &&
rm /usr/bin/{gunzip,zcat} &&
ln -s gzip /bin/gunzip &&
ln -s gzip /bin/zcat &&
ln -s gunzip /bin/uncompress