From f06a73848025fcbc4afd0e5df383e6d4cb143a7c Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 08:23:27 +0100 Subject: [PATCH] add --follow-symlinks to %post sed or it will destroy password-auth symlink [release 1.2.1-3mamba;Mon Oct 12 2015] --- pam.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pam.spec b/pam.spec index a531889..3f917a7 100644 --- a/pam.spec +++ b/pam.spec @@ -10,7 +10,7 @@ Name: pam Version: 1.2.1 -Release: 2mamba +Release: 3mamba Summary: Utilities for monitoring your system and processes on your system Group: System/Libraries Vendor: openmamba @@ -160,7 +160,7 @@ if [ $1 -ge 1 ]; then groupadd camera -g %{group_camera} 2>/dev/null groupadd scanner -g %{group_scanner} 2>/dev/null - sed -i "s|required[ \t]*pam_stack.so service=system-auth|include system-auth|" %{_sysconfdir}/pam.d/* + sed -i --follow-symlinks "s|required[ \t]*pam_stack.so service=system-auth|include system-auth|" %{_sysconfdir}/pam.d/* fi if [ $1 -gt 1 ]; then grep pam_systemd %{_sysconfdir}/pam.d/system-auth >/dev/null || { @@ -236,6 +236,9 @@ exit 0 #%endif %changelog +* Mon Oct 12 2015 Silvan Calarco 1.2.1-3mamba +- add --follow-symlinks to %post sed or it will destroy password-auth symlink + * Sat Oct 10 2015 Silvan Calarco 1.2.1-2mamba - add symlink password-auth to /etc/pam.d/system-auth