diff --git a/Attic/appendixc/packages.xml b/Attic/appendixc/packages.xml index ceabc7faf..f0ed41ae3 100644 --- a/Attic/appendixc/packages.xml +++ b/Attic/appendixc/packages.xml @@ -58,7 +58,6 @@ package quicker. &ac-procps; &ac-psmisc; &ac-shadowpwd; -&ac-shadowpwd-patch; &ac-sysklogd; &ac-sysvinit; &ac-utillinux; diff --git a/Attic/appendixc/shadowpwd-patch.xml b/Attic/appendixc/shadowpwd-patch.xml deleted file mode 100644 index 53081833e..000000000 --- a/Attic/appendixc/shadowpwd-patch.xml +++ /dev/null @@ -1,4 +0,0 @@ -Shadow Password Suite Patch (&shadow-version;): -&ftp;/ -&http;/ - diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 86ce7cf00..b8bee9341 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -27,6 +27,9 @@ +Removed shadow-utils patch in favour of a sed +command + Removed sysvinit patch in favour of a sed command. diff --git a/chapter04/packages.xml b/chapter04/packages.xml index a7673a0d4..7caad0673 100644 --- a/chapter04/packages.xml +++ b/chapter04/packages.xml @@ -58,7 +58,6 @@ &c3-procps; &c3-psmisc; &c3-shadowpwd; -&c3-shadowpwd-patch; &c3-sysklogd; &c3-sysvinit; &c3-utillinux; diff --git a/chapter04/shadowpwd-patch.xml b/chapter04/shadowpwd-patch.xml deleted file mode 100644 index 577d66015..000000000 --- a/chapter04/shadowpwd-patch.xml +++ /dev/null @@ -1,4 +0,0 @@ -Shadow Password Suite Patch (&shadow-version;) - &shadow-patch-size;: -&ftp;/shadow-&shadow-version;.patch.bz2 -&http;/shadow-&shadow-version;.patch.bz2 - diff --git a/chapter06/shadowpwd-exp.xml b/chapter06/shadowpwd-exp.xml index fc162e326..924769fff 100644 --- a/chapter06/shadowpwd-exp.xml +++ b/chapter06/shadowpwd-exp.xml @@ -1,6 +1,10 @@ Command explanations +sed 's/\(.*\) (nflg || \(.*\)/\1\(\2/' useradd.c.temp +> src/useradd.c: This sed is used to fix a compilation +bug which occurs due to a variable being used but not defined. + cp limits login.access and others: These files were not installed during the installation of the package so we copy them manually as those files are used to configure authentication 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 @@ Installation of Shadow Password Suite -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: +Install the Shadow Password Suite by running the +following commands: -patch -Np1 -i ../shadow-20001016.patch && +mv src/useradd.c useradd.c.temp && +sed 's/\(.*\) (nflg || \(.*\)/\1\(\2/' useradd.c.temp > src/useradd.c && ./configure --prefix=/usr && make && make install && diff --git a/index.xml b/index.xml index 98f0b915f..c4d481169 100644 --- a/index.xml +++ b/index.xml @@ -121,7 +121,6 @@ - @@ -509,14 +508,13 @@ - - + @@ -788,7 +786,6 @@ -