aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/gzip-exp.xml8
-rw-r--r--chapter06/gzip-inst.xml3
-rw-r--r--chapter06/gzip.xml1
3 files changed, 11 insertions, 1 deletions
diff --git a/chapter06/gzip-exp.xml b/chapter06/gzip-exp.xml
new file mode 100644
index 000000000..503f642e0
--- /dev/null
+++ b/chapter06/gzip-exp.xml
@@ -0,0 +1,8 @@
+<sect2>
+<title>Command explanations</title>
+
+<para><userinput>patch -Np1 -i ../gzip-1.2.4b.patch:</userinput>
+This patch fixes a buffer overflow that occurs when a filename is
+longer than 1020 characters.</para>
+
+</sect2>
diff --git a/chapter06/gzip-inst.xml b/chapter06/gzip-inst.xml
index c4048e571..51aaf8748 100644
--- a/chapter06/gzip-inst.xml
+++ b/chapter06/gzip-inst.xml
@@ -3,7 +3,8 @@
<para>Install Gzip by running the following commands:</para>
-<para><screen><userinput>./configure --prefix=/usr &amp;&amp;
+<para><screen><userinput>patch -Np1 -i ../gzip-&gzip-patch-version;.patch &amp;&amp;
+./configure --prefix=/usr &amp;&amp;
cp gzexe.in{,.backup} &amp;&amp;
sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in &amp;&amp;
make &amp;&amp;
diff --git a/chapter06/gzip.xml b/chapter06/gzip.xml
index fbc7fcf9f..0cf15fa30 100644
--- a/chapter06/gzip.xml
+++ b/chapter06/gzip.xml
@@ -6,6 +6,7 @@
Estimated required disk space: &gzip-compsize;</screen>
&c6-gzip-inst;
+&c6-gzip-exp;
&aa-gzip-desc;
&aa-gzip-dep;