[packages/pam] - fix sed command grouping

baggins baggins at pld-linux.org
Sat Dec 23 10:53:49 CET 2023


commit 23fa49333acbd78ce8d4861c0734e45bd43d0437
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Dec 23 09:37:29 2023 +0100

    - fix sed command grouping

 pam.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pam.spec b/pam.spec
index a333ab9..2af3026 100644
--- a/pam.spec
+++ b/pam.spec
@@ -419,7 +419,7 @@ if grep -qs pam_tally /etc/pam.d/system-auth; then
 	%{__sed} -i -e '/pam_tally/d' /etc/pam.d/system-auth
 fi
 if grep -qs pam_cracklib /etc/pam.d/system-auth; then
-	%{__sed} -i -e '/pam_cracklib/ s/pam_cracklib/pam_pwquality/; s/$/ use_authtok/' /etc/pam.d/system-auth
+	%{__sed} -i -e '/pam_cracklib/ { s/pam_cracklib/pam_pwquality/; s/$/ use_authtok/ }' /etc/pam.d/system-auth
 fi
 
 # removed in 1.1.4
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pam.git/commitdiff/23fa49333acbd78ce8d4861c0734e45bd43d0437



More information about the pld-cvs-commit mailing list