[packages/pam] - fix use_authtok for pwquality module breaking passwd, rel 2
baggins
baggins at pld-linux.org
Sat Jan 6 11:31:39 CET 2024
commit faf71dd193ccb1a132e6d2acdb5e2eaec5da52d3
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Jan 6 10:25:20 2024 +0100
- fix use_authtok for pwquality module breaking passwd, rel 2
pam.spec | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/pam.spec b/pam.spec
index 10be47f..accd3bd 100644
--- a/pam.spec
+++ b/pam.spec
@@ -23,7 +23,7 @@ Summary(tr.UTF-8): Modüler, artımsal doğrulama birimleri
Summary(uk.UTF-8): Інструмент, що забезпечує аутентифікацію для програм
Name: pam
Version: 1.5.3
-Release: 1
+Release: 2
Epoch: 1
# The library is BSD licensed with option to relicense as GPLv2+
# - this option is redundant as the BSD license allows that anyway.
@@ -417,13 +417,17 @@ if [ "$1" != 1 ]; then
fi
exit 0
-%triggerpostun -- %{name} < 1:1.5.3
+%triggerpostun -- %{name} < 1:1.5.3-2
# removed in 1.5.3
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/' /etc/pam.d/system-auth
+fi
+# broken in 1.5.3-1
+if grep -qs pam_pwquality /etc/pam.d/system-auth; then
+ %{__sed} -i -e '/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/faf71dd193ccb1a132e6d2acdb5e2eaec5da52d3
More information about the pld-cvs-commit
mailing list