2003-01-17 05:09:20 +00:00
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Gzip</title>
|
|
|
|
|
2003-02-04 05:20:24 +00:00
|
|
|
<para>The following patch fixes a buffer overflow that occurs when a
|
|
|
|
filename is longer than 1020 characters. It does this by inserting a check
|
|
|
|
that the buffer is large enough for the given filename. The program exits
|
2003-02-05 18:29:23 +00:00
|
|
|
with the message "Filename too long" if the buffer is not large enough.</para>
|
2003-01-19 15:36:47 +00:00
|
|
|
|
|
|
|
<para><screen><userinput>patch -Np1 -i ../gzip-&gzip-patch-version;.patch</userinput></screen></para>
|
|
|
|
|
2003-01-17 05:09:20 +00:00
|
|
|
<para>Prepare Gzip to be compiled:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-01-19 15:36:47 +00:00
|
|
|
<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Change the default installation directory for Gzip so it will
|
|
|
|
be installed in the <filename class="directory">/bin</filename>
|
|
|
|
directory:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>cp gzexe.in{,.backup} &&
|
|
|
|
sed 's%"BINDIR"%/bin%' gzexe.in.backup > gzexe.in</userinput></screen></para>
|
2003-01-17 05:09:20 +00:00
|
|
|
|
|
|
|
<para>Continue with compiling the package:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>make</userinput></screen></para>
|
|
|
|
|
2003-01-19 15:36:47 +00:00
|
|
|
<para>Install the package:</para>
|
2003-01-17 05:09:20 +00:00
|
|
|
|
|
|
|
<para><screen><userinput>make install</userinput></screen></para>
|
|
|
|
|
2003-01-19 15:36:47 +00:00
|
|
|
<para>Move the Gzip binaries to the <filename
|
|
|
|
class="directory">/bin</filename> directory:</para>
|
2003-01-17 05:09:20 +00:00
|
|
|
|
2003-01-19 15:36:47 +00:00
|
|
|
<para><screen><userinput>mv /usr/bin/gzip /bin &&
|
2002-05-02 21:15:02 +01:00
|
|
|
rm /usr/bin/{gunzip,zcat} &&
|
2002-08-18 18:26:58 +01:00
|
|
|
ln -s gzip /bin/gunzip &&
|
|
|
|
ln -s gzip /bin/zcat &&
|
|
|
|
ln -s gunzip /bin/uncompress</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-01-17 05:09:20 +00:00
|
|
|
</sect2>
|