From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Kapfer To: development@lists.ipfire.org Subject: [PATCH] PAM: Delete old lib and symlinks Date: Sun, 18 Mar 2018 13:55:31 +0100 Message-ID: <1521377731-4322-1-git-send-email-erik.kapfer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3855835810620111535==" List-Id: --===============3855835810620111535== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Core 119 update delivers an updated PAM whereby the libdir has been changed f= rom /lib to /usr/lib but the old libraries and symlinks are still presant. Since the system search= es /lib before /usr/lib , the old libs and symlinks are used which ends up in an `LIBPAM_EXT= ENSION_1.1' not found. Signed-off-by: Erik Kapfer --- config/rootfiles/core/120/update.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/rootfiles/core/120/update.sh b/config/rootfiles/core/120/= update.sh index 2f1bca0..02f2ad0 100644 --- a/config/rootfiles/core/120/update.sh +++ b/config/rootfiles/core/120/update.sh @@ -34,6 +34,11 @@ done # Remove forgotten PHP file rm -f /etc/httpd/conf/conf.d/php5.conf =20 +# Delete old PAM libs and symlinks if presant +if ls /lib | grep -q 'libpam.*'; then + rm -f /lib/libpam* +fi + # Stop services =20 # Extract files --=20 2.7.4 --===============3855835810620111535==--