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
This commit is contained in:
Pavel Březina 2021-11-23 16:11:51 +01:00
parent ff21ecd192
commit 743dc9ca3b

View File

@ -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 <pbrezina@redhat.com> - 1.5.2-8
- systemd-auth, smartcard-auth, fingerprint-auth, password-auth and postlogin are now owned by authselect (#2023738)