diff --git a/security/pamtester/Makefile b/security/pamtester/Makefile index 9c9bc81b2028..c7920836577b 100644 --- a/security/pamtester/Makefile +++ b/security/pamtester/Makefile @@ -1,19 +1,18 @@ PORTNAME= pamtester PORTVERSION= 0.1.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Command line pam authentication tester WWW= https://pamtester.sourceforge.net/ GNU_CONFIGURE= yes -GNU_CONFIGURE_MANPREFIX=${PREFIX}/share CPPFLAGS+= ${CFLAGS} USES= gmake PLIST_FILES= bin/pamtester \ share/man/man1/pamtester.1.gz .include diff --git a/security/pamtester/files/patch-src_app.c b/security/pamtester/files/patch-src_app.c index 54f36999ebfb..7c5c03e5fa9b 100644 --- a/security/pamtester/files/patch-src_app.c +++ b/security/pamtester/files/patch-src_app.c @@ -1,12 +1,28 @@ ---- src/app.c.orig Tue May 24 20:19:17 2005 -+++ src/app.c Tue May 24 20:20:30 2005 -@@ -60,6 +60,9 @@ +--- src/app.c.orig 2005-09-20 05:55:34 UTC ++++ src/app.c +@@ -62,6 +62,9 @@ #ifdef HAVE_SECURITY_PAM_MISC_H #include +#else +#include +#define misc_conv openpam_ttyconv #endif #ifdef HAVE_PAM_PAM_MISC_H +@@ -446,6 +449,15 @@ int pamtester_app_run(pamtester_app_t *params) + err_msg = xmalloc(sizeof("Unsupported operation \"\"") + strlen(op->name)); + sprintf(err_msg, "Unsupported operation \"%s\"", op->name); + goto out; ++ } ++ ++ char **envlist = pam_getenvlist(pamh); ++ if (envlist != NULL) { ++ for (int i = 0; envlist[i] != NULL; ++i) { ++ printf("%s: returned env: %s\n", params->app_name, envlist[i]); ++ free(envlist[i]); ++ } ++ free(envlist); + } + } +