From patchwork Sun Mar 18 23:55:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Kapfer X-Patchwork-Id: 1703 Return-Path: Received: from mail01.ipfire.org (mail01.ipfire.org [IPv6:2001:470:7183:25::1]) by web02.i.ipfire.org (Postfix) with ESMTP id 4A01460134 for ; Sun, 18 Mar 2018 13:56:49 +0100 (CET) X-Virus-Scanned: ClamAV at mail01.ipfire.org X-Spam-Flag: NO X-Spam-Score: -1.1 X-Spam-Level: X-Spam-Status: No, score=-1.1 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] autolearn=disabled Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id B20F310BA4BD; Sun, 18 Mar 2018 12:56:47 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ipfire.org; s=201801; t=1521377808; x=1523969808; bh=6+627ZZ/4mRzS0Em2Jwj+bnbkWnKrXuNcen5Zr2+vAQ=; h=From:To:Subject:Date:Message-Id:Sender:From:To:Cc:Date: Content-Type:Message-ID:In-Reply-To:Subject:Reply-To:Sender; b=uF2nWmbG0YYYe+9Qp2sQk9HL1VYAezIsWbzktA9+zoqjkFMMahPwtsMb+x3x05jDh /7wd8Pfsoz3vNXupGVCsSqgNbon6w5PY5mVbgqaLguYmANhS6S8oCcIM9Obieq+xaX oDHODNhheZHXQmY2ThSa3slgTZaFCMFX76Cy7Xe710SWavp32t/XtMoYKWE4DOxsY3 P03BLg/l06ROftGTzKBKj8S4uP138n0H8Wh9A0IjC6FKNQWR7WQQF2FBkc+5aub0gn DTMPqQCWAnV8JaMtWULKO6i3KIme6fGg8pSSaC6fXX9F+u2y4lQWn38ssBbTvoe7sW wDXE0A/92BoVg== X-Virus-Scanned: ClamAV at mail01.ipfire.org Received: from localhost.localdomain (i59F52792.versanet.de [89.245.39.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id A50C4100804E; Sun, 18 Mar 2018 12:55:36 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ipfire.org; s=201801; t=1521377736; x=1523969736; bh=6+627ZZ/4mRzS0Em2Jwj+bnbkWnKrXuNcen5Zr2+vAQ=; h=From:To:Cc:Subject:Date:Message-Id:From:To:Cc:Date:Content-Type: Message-ID:In-Reply-To:Subject:Reply-To:Sender; b=bGLfN7Ic7QJfKMFgi59woUdjauDEHm8EAVQ9acfZoSQCN7u1X1ZJ08/kRSNXtS4/m imkBSYNqVQ8La9wB0WCQEr8qT44xu2tSjT9VkudFSCv94t5cZCoIr3YU7U7QEHG8rv IkKQKrcVc9wCJMkdPUWKPVlKT6xExG3ci4xWvAfUBpBqvkIRuvs3v4h+k/1aJKyuOV bOwdl6DhnWy+QWOYXbVKHyksSvRbDC56To0U1qhMAM+cmW8JTgpxitJKgXI4ZAq7fw EREbuBDFducfVxh36qxpZHW+Y/Z8aeIRy34YpltSUe3kcRb14vHA8IPQAC3kMZo9ip wdgywT9xJYQEQ== 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> X-Mailer: git-send-email 2.7.4 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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