pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/pam-af security/pam-af: "Fix" missing pam_sm_...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a6532476517f
branches:  trunk
changeset: 455601:a6532476517f
user:      rhialto <rhialto%pkgsrc.org@localhost>
date:      Tue Jul 06 20:01:17 2021 +0000

description:
security/pam-af: "Fix" missing pam_sm_authenticate().

Hacky workaround for

Jul  5 16:38:36 murthe sshd: in openpam_dispatch(): /usr/pkg/lib/security/pam_af.so: no pam_sm_authenticate()
Jul  5 16:38:36 murthe sshd: in openpam_check_error_code(): pam_sm_authenticate(): unexpected return value 2

See http://mail-index.netbsd.org/tech-pkg/2021/07/05/msg025227.html and
http://gnats.netbsd.org/39313.

diffstat:

 security/pam-af/Makefile         |  4 ++--
 security/pam-af/distinfo         |  4 ++--
 security/pam-af/patches/patch-ab |  6 ++++--
 3 files changed, 8 insertions(+), 6 deletions(-)

diffs (58 lines):

diff -r 7fb13b665fe8 -r a6532476517f security/pam-af/Makefile
--- a/security/pam-af/Makefile  Tue Jul 06 19:50:49 2021 +0000
+++ b/security/pam-af/Makefile  Tue Jul 06 20:01:17 2021 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.17 2018/01/28 20:11:03 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2021/07/06 20:01:17 rhialto Exp $
 
 DISTNAME=      pam_af-1.0.2
 PKGNAME=       ${DISTNAME:S/_/-/}
-PKGREVISION=   3
+PKGREVISION=   4
 CATEGORIES=    security
 MASTER_SITES=  http://mbsd.msk.ru/dist/
 EXTRACT_SUFX=  .tar.bz2
diff -r 7fb13b665fe8 -r a6532476517f security/pam-af/distinfo
--- a/security/pam-af/distinfo  Tue Jul 06 19:50:49 2021 +0000
+++ b/security/pam-af/distinfo  Tue Jul 06 20:01:17 2021 +0000
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.12 2017/02/08 00:07:38 joerg Exp $
+$NetBSD: distinfo,v 1.13 2021/07/06 20:01:17 rhialto Exp $
 
 SHA1 (pam_af-1.0.2.tar.bz2) = e3856a33d79beafa8d4e8cb44b19cbf79a3ed422
 RMD160 (pam_af-1.0.2.tar.bz2) = 0c4163d811ba83de32e9b4633780ac76c8d10d8f
 SHA512 (pam_af-1.0.2.tar.bz2) = 89dc8a78e5d888e6cbf84820420201ef19d012d7fbc39f40ede7e7b4cef12a5896bec7a2a6bfc17cf8d111800e54eb2559e55cd3218b04e84cd0a2a24d7dcc01
 Size (pam_af-1.0.2.tar.bz2) = 17991 bytes
 SHA1 (patch-aa) = 9c8e44c7b25e268777967c742a6946abe0c80316
-SHA1 (patch-ab) = 2d42056f2972a34d2ec681f3c408cfdfc7c26d67
+SHA1 (patch-ab) = aec6c301a5e699cd0e39c552748c48bbf77af52d
 SHA1 (patch-ad) = 0f46fecfec3b920a08e2c22c14ada368214d6a69
 SHA1 (patch-common_pam__af.h) = 026b303116b80cb48987c24b5f48677e7581a346
 SHA1 (patch-pam__af__tool_pam__af__tool.c) = af061bc8766cbf8406dd7a8ce95240e708085bba
diff -r 7fb13b665fe8 -r a6532476517f security/pam-af/patches/patch-ab
--- a/security/pam-af/patches/patch-ab  Tue Jul 06 19:50:49 2021 +0000
+++ b/security/pam-af/patches/patch-ab  Tue Jul 06 20:01:17 2021 +0000
@@ -1,7 +1,8 @@
-$NetBSD: patch-ab,v 1.4 2012/04/07 01:53:18 obache Exp $
+$NetBSD: patch-ab,v 1.5 2021/07/06 20:01:17 rhialto Exp $
 
 * LOG_AUTHPRIV is not in Solaris, use LOG_AUTH instead.
 * Allow to build with non-native PAM on *BSD.
+* Hacky workaround for http://gnats.netbsd.org/39313
 
 --- pam_af.c.orig      2011-08-24 07:53:32.000000000 +0000
 +++ pam_af.c
@@ -15,11 +16,12 @@
  #include <assert.h>
  #include <ndbm.h>
  
-@@ -444,6 +447,6 @@ pam_sm_setcred(pamh, flags, argc, argv)
+@@ -444,6 +447,7 @@ pam_sm_setcred(pamh, flags, argc, argv)
        PAM_RETURN(PAM_SUCCESS);
  }
  
 -#ifdef _USE_MODULE_ENTRY_
 +#ifdef PAM_MODULE_ENTRY
++#define static
  PAM_MODULE_ENTRY("pam_af");
  #endif



Home | Main Index | Thread Index | Old Index