gzip-inst.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Gzip</title>
  4. <para>The following patch fixes a buffer overflow that occurs when a
  5. filename is longer than 1020 characters. It does this by inserting a check
  6. that the buffer is large enough for the given filename. The program exits
  7. with the message "Filename too long" if the buffer is not large enough.</para>
  8. <para><screen><userinput>patch -Np1 -i ../gzip-&gzip-patch-version;.patch</userinput></screen></para>
  9. <para>Prepare Gzip to be compiled:</para>
  10. <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
  11. <para>Change the default installation directory for Gzip so it will
  12. be installed in the <filename class="directory">/bin</filename>
  13. directory:</para>
  14. <para><screen><userinput>cp gzexe.in{,.backup} &amp;&amp;
  15. sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in</userinput></screen></para>
  16. <para>Continue with compiling the package:</para>
  17. <para><screen><userinput>make</userinput></screen></para>
  18. <para>Install the package:</para>
  19. <para><screen><userinput>make install</userinput></screen></para>
  20. <para>Move the Gzip binaries to the <filename
  21. class="directory">/bin</filename> directory:</para>
  22. <para><screen><userinput>mv /usr/bin/gzip /bin &amp;&amp;
  23. rm /usr/bin/{gunzip,zcat} &amp;&amp;
  24. ln -s gzip /bin/gunzip &amp;&amp;
  25. ln -s gzip /bin/zcat &amp;&amp;
  26. ln -s gunzip /bin/uncompress</userinput></screen></para>
  27. </sect2>