aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/shadowpwd-inst.xml
diff options
context:
space:
mode:
authorMark Hymers <markh@linuxfromscratch.org>2001-08-07 13:43:37 +0000
committerMark Hymers <markh@linuxfromscratch.org>2001-08-07 13:43:37 +0000
commit1dc3102768341ef023f012fef77ddee454d98f21 (patch)
tree65c153d3dc736b1e1b515e236433379244900f64 /chapter06/shadowpwd-inst.xml
parent6fda0ee9409b4d4a75f896c32d33fa13823693dd (diff)
Bug 123: change patch to sed
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@922 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
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>