Date: Friday, April 20, 2018 @ 11:39:56 Author: eworm Revision: 317175
archrelease: copy trunk to community-x86_64 Added: yubico-pam/repos/community-x86_64/0001-util-make-sure-to-close-the-authfile-before-returnin.patch (from rev 317174, yubico-pam/trunk/0001-util-make-sure-to-close-the-authfile-before-returnin.patch) yubico-pam/repos/community-x86_64/PKGBUILD (from rev 317174, yubico-pam/trunk/PKGBUILD) Deleted: yubico-pam/repos/community-x86_64/0001-util-make-sure-to-close-the-authfile-before-returnin.patch yubico-pam/repos/community-x86_64/PKGBUILD -----------------------------------------------------------------+ 0001-util-make-sure-to-close-the-authfile-before-returnin.patch | 52 ++--- PKGBUILD | 92 ++++------ 2 files changed, 68 insertions(+), 76 deletions(-) Deleted: 0001-util-make-sure-to-close-the-authfile-before-returnin.patch =================================================================== --- 0001-util-make-sure-to-close-the-authfile-before-returnin.patch 2018-04-20 11:39:52 UTC (rev 317174) +++ 0001-util-make-sure-to-close-the-authfile-before-returnin.patch 2018-04-20 11:39:56 UTC (rev 317175) @@ -1,26 +0,0 @@ -From 0f6ceabab0a8849b47f67d727aa526c2656089ba Mon Sep 17 00:00:00 2001 -From: Klas Lindfors <k...@yubico.com> -Date: Tue, 3 Apr 2018 09:19:53 +0200 -Subject: [PATCH 1/1] util: make sure to close the authfile before returning - success - -fixes #136 - -Signed-off-by: Christian Hesse <m...@eworm.de> ---- - util.c | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/util.c b/util.c -index 6cb4a79..32bca06 100644 ---- a/util.c -+++ b/util.c -@@ -167,6 +167,8 @@ check_user_token (const char *authfile, - { - if(verbose) - D (debug_file, "Match user/token as %s/%s", username, otp_id); -+ -+ fclose(opwfile); - return AUTH_FOUND; - } - } Copied: yubico-pam/repos/community-x86_64/0001-util-make-sure-to-close-the-authfile-before-returnin.patch (from rev 317174, yubico-pam/trunk/0001-util-make-sure-to-close-the-authfile-before-returnin.patch) =================================================================== --- 0001-util-make-sure-to-close-the-authfile-before-returnin.patch (rev 0) +++ 0001-util-make-sure-to-close-the-authfile-before-returnin.patch 2018-04-20 11:39:56 UTC (rev 317175) @@ -0,0 +1,26 @@ +From 0f6ceabab0a8849b47f67d727aa526c2656089ba Mon Sep 17 00:00:00 2001 +From: Klas Lindfors <k...@yubico.com> +Date: Tue, 3 Apr 2018 09:19:53 +0200 +Subject: [PATCH 1/1] util: make sure to close the authfile before returning + success + +fixes #136 + +Signed-off-by: Christian Hesse <m...@eworm.de> +--- + util.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/util.c b/util.c +index 6cb4a79..32bca06 100644 +--- a/util.c ++++ b/util.c +@@ -167,6 +167,8 @@ check_user_token (const char *authfile, + { + if(verbose) + D (debug_file, "Match user/token as %s/%s", username, otp_id); ++ ++ fclose(opwfile); + return AUTH_FOUND; + } + } Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-04-20 11:39:52 UTC (rev 317174) +++ PKGBUILD 2018-04-20 11:39:56 UTC (rev 317175) @@ -1,50 +0,0 @@ -# $Id$ -# Maintainer: Christian Hesse <m...@eworm.de> - -pkgname=yubico-pam -_shortname=pam_yubico -pkgver=2.25 -pkgrel=2 -pkgdesc='Yubico YubiKey PAM module' -arch=('x86_64') -url='https://github.com/Yubico/yubico-pam' -license=('BSD') -depends=('pam' 'yubico-c-client' 'yubikey-personalization' 'json-c') -checkdepends=('perl-net-ldap-server') -provides=("${_shortname}") -conflicts=("${_shortname}") -validpgpkeys=('0A3B0262BCA1705307D5FF06BCA00FD4B2168C0A') # Klas Lindfors <k...@yubico.com> -source=("https://developers.yubico.com/${pkgname}/Releases/${_shortname}-${pkgver}.tar.gz"{,.sig} - '0001-util-make-sure-to-close-the-authfile-before-returnin.patch') -sha256sums=('624a5754d82665f6ba5f2e012f57cb41ea9bf61781ed2272dba49dffb4704e36' - 'SKIP' - '1b044b779cb08d3a02fea7a62203b494fec621f74a47f27a085b06c22cbe8c88') - -prepare() { - cd "${_shortname}-${pkgver}" - - patch -Np1 < "${srcdir}"/0001-util-make-sure-to-close-the-authfile-before-returnin.patch -} - -build() { - cd "${_shortname}-${pkgver}" - - ./configure \ - --prefix=/usr - make -} - -check() { - cd "${_shortname}-${pkgver}" - - make check -} - -package() { - cd "${_shortname}-${pkgver}" - - install -D -m0644 COPYING "${pkgdir}/usr/share/licenses/yubico-pam/COPYING" - install -D -m0644 README "${pkgdir}/usr/share/doc/yubico-pam/README" - make DESTDIR="${pkgdir}/" install -} - Copied: yubico-pam/repos/community-x86_64/PKGBUILD (from rev 317174, yubico-pam/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-04-20 11:39:56 UTC (rev 317175) @@ -0,0 +1,42 @@ +# $Id$ +# Maintainer: Christian Hesse <m...@eworm.de> + +pkgname=yubico-pam +_shortname=pam_yubico +pkgver=2.26 +pkgrel=1 +pkgdesc='Yubico YubiKey PAM module' +arch=('x86_64') +url='https://github.com/Yubico/yubico-pam' +license=('BSD') +depends=('pam' 'yubico-c-client' 'yubikey-personalization' 'json-c') +checkdepends=('perl-net-ldap-server') +provides=("${_shortname}") +conflicts=("${_shortname}") +validpgpkeys=('0A3B0262BCA1705307D5FF06BCA00FD4B2168C0A') # Klas Lindfors <k...@yubico.com> +source=("https://developers.yubico.com/${pkgname}/Releases/${_shortname}-${pkgver}.tar.gz"{,.sig}) +sha256sums=('2de96495963fefd72b98243952ca5d5ec513e702c596e54bc667ef6b5e252966' + 'SKIP') + +build() { + cd "${_shortname}-${pkgver}" + + ./configure \ + --prefix=/usr + make +} + +check() { + cd "${_shortname}-${pkgver}" + + make check +} + +package() { + cd "${_shortname}-${pkgver}" + + install -D -m0644 COPYING "${pkgdir}/usr/share/licenses/yubico-pam/COPYING" + install -D -m0644 README "${pkgdir}/usr/share/doc/yubico-pam/README" + make DESTDIR="${pkgdir}/" install +} +