+ fprintd-0.9.0-1

Update to 0.9.0
Add patch to fix length check of rhost
This commit is contained in:
Benjamin Berg 2019-08-14 13:34:59 +02:00
parent 6c936ff8dd
commit 019b66e6e2
4 changed files with 37 additions and 4 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ fprintd-0.1-04fd09cfa.tar.bz2
/fprintd-0.7.0.tar.xz
/fprintd-0.8.0.tar.xz
/fprintd-0.8.1.tar.xz
/fprintd-0.9.0.tar.xz

View File

@ -0,0 +1,25 @@
From 96444b4156cbc5d0364ac45a7b3288ae28dfbb58 Mon Sep 17 00:00:00 2001
From: Benjamin Berg <bberg@redhat.com>
Date: Tue, 13 Aug 2019 14:16:11 +0200
Subject: [PATCH] pam: Fix rhost string length check
---
pam/pam_fprintd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pam/pam_fprintd.c b/pam/pam_fprintd.c
index 408b74c..b2eee4d 100644
--- a/pam/pam_fprintd.c
+++ b/pam/pam_fprintd.c
@@ -481,7 +481,7 @@ PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc,
* "localhost" if the host is local.
* We want to not run for known remote hosts */
if (rhost != NULL &&
- rhost != '\0' &&
+ *rhost != '\0' &&
strcmp (rhost, "localhost") != 0) {
return PAM_AUTHINFO_UNAVAIL;
}
--
2.21.0

View File

@ -1,6 +1,6 @@
Name: fprintd
Version: 0.8.1
Release: 5%{?dist}
Version: 0.9.0
Release: 1%{?dist}
Summary: D-Bus service for Fingerprint reader access
License: GPLv2+
@ -18,6 +18,8 @@ BuildRequires: autoconf automake libtool
BuildRequires: perl-podlators
BuildRequires: pkgconfig(systemd)
Patch0: 0001-pam-Fix-rhost-string-length-check.patch
%description
D-Bus service to access fingerprint readers.
@ -47,7 +49,7 @@ Development documentation for fprintd, the D-Bus service for
fingerprint readers access.
%prep
%setup -q -n %{name}-%{version}
%autosetup -p1 -n %{name}-%{version}
%build
%configure --libdir=/%{_lib}/ --enable-gtk-doc --enable-pam
@ -91,6 +93,11 @@ fi
%{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.Manager.xml
%changelog
* Wed Aug 14 2019 Benjamin Berg <bberg@redhat.com> - 0.9.0-1
+ fprintd-0.9.0-1
- Update to 0.9.0
- Add patch to fix length check of rhost
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (fprintd-0.8.1.tar.xz) = 1662cb58c0c1cabef2fb05d79249c1985053fd810d4ac9fdb7461adcb8b7c7f680490800bfba357f1ad23684492a3fd60546301d81dcd96e0f09c52ed2082200
SHA512 (fprintd-0.9.0.tar.xz) = c8e5ff2c8134e23c6ed83c6c96587dfbc14e4503ca13fcdfd4103b9d2c00332456fdef2e16ea11b0dfde7642ad762f219c38cc5f1a4d875c6ed1970144de9514