aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/cyrus-sasl2/Makefile1
-rw-r--r--security/cyrus-sasl2/files/patch-lib::dlopen.c16
2 files changed, 17 insertions, 0 deletions
diff --git a/security/cyrus-sasl2/Makefile b/security/cyrus-sasl2/Makefile
index 50ef85d28950..20078220d867 100644
--- a/security/cyrus-sasl2/Makefile
+++ b/security/cyrus-sasl2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= cyrus-sasl
PORTVERSION= 2.1.7
+PORTREVISION= 1
CATEGORIES= security ipv6
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
ftp://ftp.westbend.net/pub/cyrus-mail/ \
diff --git a/security/cyrus-sasl2/files/patch-lib::dlopen.c b/security/cyrus-sasl2/files/patch-lib::dlopen.c
new file mode 100644
index 000000000000..6c915ffeeaac
--- /dev/null
+++ b/security/cyrus-sasl2/files/patch-lib::dlopen.c
@@ -0,0 +1,16 @@
+Index: lib/dlopen.c
+diff -u lib/dlopen.c.orig lib/dlopen.c
+--- lib/dlopen.c.orig Fri Apr 19 01:58:42 2002
++++ lib/dlopen.c Wed Aug 14 18:45:43 2002
+@@ -254,7 +254,11 @@
+ return SASL_FAIL;
+ }
+ }
++#if defined(__FreeBSD__)
++ if(out != in) snprintf(out, PATH_MAX, "%s/%s", prefix, in);
++#else
+ if(out != in) strncpy(out, in, PATH_MAX);
++#endif
+ return SASL_OK;
+ }
+