r7104 - trunk/BOOK/postlfs/security

randy at linuxfromscratch.org randy at linuxfromscratch.org
Fri Sep 7 13:14:31 PDT 2007


Author: randy
Date: 2007-09-07 14:14:31 -0600 (Fri, 07 Sep 2007)
New Revision: 7104

Modified:
   trunk/BOOK/postlfs/security/linux-pam.xml
Log:
Added an 'if exist' type check to the Linux-PAM commands that create the symlinks so that if the commands are run more than once, there is no breakage

Modified: trunk/BOOK/postlfs/security/linux-pam.xml
===================================================================
--- trunk/BOOK/postlfs/security/linux-pam.xml	2007-09-07 19:13:53 UTC (rev 7103)
+++ trunk/BOOK/postlfs/security/linux-pam.xml	2007-09-07 20:14:31 UTC (rev 7104)
@@ -129,10 +129,12 @@
 mv -v /lib/libpam{,c,_misc}.la /usr/lib &&
 sed -i 's| /lib| /usr/lib|' /usr/lib/libpam_misc.la &&
 
-for LINK in libpam{,c,_misc}.so; do
-    ln -v -sf ../../lib/$(readlink /lib/${LINK}) /usr/lib/${LINK} &&
-    rm -v /lib/${LINK}
-done</userinput></screen>
+if [ -L /lib/libpam.so ]; then
+   for LINK in libpam{,c,_misc}.so; do
+       ln -v -sf ../../lib/$(readlink /lib/${LINK}) /usr/lib/${LINK} &&
+       rm -v /lib/${LINK}
+   done
+fi</userinput></screen>
 
     <!-- <para>If you downloaded the documentation, install it using the following
     command:</para>




More information about the blfs-book mailing list