From 743dc9ca3b5a82c1515c549a11a926985fc70adc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ezina?= Date: Tue, 23 Nov 2021 16:11:51 +0100 Subject: [PATCH] spec: remove fprintd snippet Related to: https://fedoraproject.org/wiki/Changes/Make_Authselect_Mandatory This snippet is no longer required: 1) Users are supposed to upgrade to F35 first which will fix the file 2) Users are now expected to use authselect for configuration --- pam.spec | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/pam.spec b/pam.spec index bf1880d..2978e7a 100644 --- a/pam.spec +++ b/pam.spec @@ -345,21 +345,6 @@ done %files doc %doc %{_pkgdocdir} -%posttrans - -# For people upgrading from older Fedora versions, authselect might not be -# enabled or unable to do anything due to e.g. a modified nsswitch.conf. -# The following snippets apply important fixes in those cases. - -# Change pam_fprintd.so in fingerprint-auth from sufficient to [success=done default=bad] -# in order for PAM_AUTHINFO_UNAVAIL error codes to be propagated. -FILE="$(readlink -f %{_sysconfdir}/pam.d/fingerprint-auth || echo %{_sysconfdir}/pam.d/fingerprint-auth)" -test "$FILE" != %{_sysconfdir}/authselect/fingerprint-auth && \ - %__grep -q '^auth[[:space:]]\+sufficient[[:space:]]\+pam_fprintd.so' $FILE && \ - %__sed -i.bak -e 's/^auth[[:space:]]\+sufficient[[:space:]]\+pam_fprintd.so\(.*\)/auth [success=done default=bad] pam_fprintd.so\1/g' $FILE - -exit 0 - %changelog * Tue Nov 16 2021 Pavel Březina - 1.5.2-8 - systemd-auth, smartcard-auth, fingerprint-auth, password-auth and postlogin are now owned by authselect (#2023738)