1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

security/pam-modules: Fix build with LLVM15, assume maintainership

Fix:

pam_innetgr.c:134:16: error: incompatible function pointer types passing 'int (char *, int)' to parameter of type 'int (*)(char *, size_t)' (aka 'int (*)(char *, unsigned long)') [-Wincompatible-function-pointer-types]
                if (xgetname(getdomainname, &domainname)) {
                             ^~~~~~~~~~~~~
pam_innetgr.c:65:16: note: passing argument to parameter 'getfn' here
xgetname(int (*getfn)(char *, size_t), char **storage)
               ^
1 warning and 1 error generated.
*** [pam_innetgr.lo] Error code 1

While at it assume maintainership.
This commit is contained in:
Cy Schubert 2023-08-28 07:00:57 -07:00
parent 14812e1ef4
commit 3a86f14ade
2 changed files with 12 additions and 1 deletions

View File

@ -3,7 +3,7 @@ PORTVERSION= 2.5
CATEGORIES= security
MASTER_SITES= ftp://download.gnu.org.ua/pub/release/pam-modules/
MAINTAINER= ports@FreeBSD.org
MAINTAINER= cy@FreeBSD.org
COMMENT= Collection of modules for PAM
WWW= https://puszcza.gnu.org.ua/software/pam-modules/pam-modules.html

View File

@ -0,0 +1,11 @@
--- pam_innetgr/pam_innetgr.c.orig 2022-02-04 07:04:47.000000000 -0800
+++ pam_innetgr/pam_innetgr.c 2023-08-28 06:57:10.213329000 -0700
@@ -131,7 +131,7 @@
return -1;
#if HAVE_GETDOMAINNAME
if (use_getdomainname) {
- if (xgetname(getdomainname, &domainname)) {
+ if (xgetname((long int *) getdomainname, &domainname)) {
_pam_log(LOG_ERR, "getdomainname: %s", strerror(errno));
} else if (strcmp (domainname, "(none)") == 0) {
free(domainname);