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:
parent
14812e1ef4
commit
3a86f14ade
@ -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
|
||||
|
||||
|
11
security/pam-modules/files/patch-pam__innetgr_pam__innetgr.c
Normal file
11
security/pam-modules/files/patch-pam__innetgr_pam__innetgr.c
Normal 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);
|
Loading…
Reference in New Issue
Block a user