aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/shadowpwd-inst.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/shadowpwd-inst.xml')
-rw-r--r--chapter06/shadowpwd-inst.xml9
1 files changed, 4 insertions, 5 deletions
diff --git a/chapter06/shadowpwd-inst.xml b/chapter06/shadowpwd-inst.xml
index 040cc8acc..3a3d59644 100644
--- a/chapter06/shadowpwd-inst.xml
+++ b/chapter06/shadowpwd-inst.xml
@@ -1,12 +1,11 @@
<sect2>
<title>Installation of Shadow Password Suite</title>
-<para>Before the shadow Password Suite can be installed, the patch file
-must be unpacked. This patch fixes a compliation problem due to a
-variable being used but not defined. Install the Shadow Password
-Suite by running the following commands:</para>
+<para>Install the Shadow Password Suite by running the
+following commands:</para>
-<para><screen><userinput>patch -Np1 -i ../shadow-20001016.patch &amp;&amp;</userinput>
+<para><screen><userinput>mv src/useradd.c useradd.c.temp &amp;&amp;</userinput>
+<userinput>sed 's/\(.*\) (nflg || \(.*\)/\1\(\2/' useradd.c.temp &gt; src/useradd.c &amp;&amp;</userinput>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput>