From mboxrd@z Thu Jan 1 00:00:00 1970 From: ummeegge To: development@lists.ipfire.org Subject: Re: [PATCH] PAM: Delete old lib and symlinks Date: Sun, 18 Mar 2018 14:00:01 +0100 Message-ID: <1521378001.10696.2.camel@ipfire.org> In-Reply-To: <1521377731-4322-1-git-send-email-erik.kapfer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5705376213846463392==" List-Id: --===============5705376213846463392== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hi, problem on Core 119 with a not working PAM has been reported in the forum  which we could solve like described in here https://forum.ipfire.org/viewtopic.php?f=22&t=20480 Best, Erik Am Sonntag, den 18.03.2018, 13:55 +0100 schrieb Erik Kapfer: > Core 119 update delivers an updated PAM whereby the libdir has been > changed from /lib to /usr/lib > but the old libraries and symlinks are still presant. Since the > system searches /lib before > /usr/lib , the old libs and symlinks are used which ends up in an > `LIBPAM_EXTENSION_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 >   > +# Delete old PAM libs and symlinks if presant > +if ls /lib | grep -q 'libpam.*'; then > +    rm -f /lib/libpam* > +fi > + >  # Stop services >   >  # Extract files --===============5705376213846463392==--