summaryrefslogtreecommitdiff
path: root/security/stunnel/files/patch-src::client.c
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2009-11-19 11:06:25 +0000
committerPeter Pentchev <roam@FreeBSD.org>2009-11-19 11:06:25 +0000
commitfdef7d0cd2bc69a65c319cf89d8a2c5603a0a9c2 (patch)
tree45e34511da914ac1d4bf7f9349bd1914c674f323 /security/stunnel/files/patch-src::client.c
parentUpdate from 0.8.24 to 0.8.27. (diff)
Fix the build on FreeBSD 6.x (an older version of OpenSSL) by replacing
the official no_ticket.patch with an extended one ifdef'ing more options. Replace the src/client.c patch with the official execargs.patch. Bump PORTREVISION.
Notes
Notes: svn path=/head/; revision=244468
Diffstat (limited to 'security/stunnel/files/patch-src::client.c')
-rw-r--r--security/stunnel/files/patch-src::client.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/security/stunnel/files/patch-src::client.c b/security/stunnel/files/patch-src::client.c
deleted file mode 100644
index 8733316dfbdd..000000000000
--- a/security/stunnel/files/patch-src::client.c
+++ /dev/null
@@ -1,22 +0,0 @@
-Description: Do not pass null pointers to execvp().
-Forwarded: https://stunnel.mirt.net/cgi-bin/bugzilla3/show_bug.cgi?id=2
-Author: Peter Pentchev <roam@FreeBSD.org>
-Last-Update: 2009-11-13
-
---- src/client.c.orig
-+++ src/client.c
-@@ -859,6 +859,14 @@
- sigemptyset(&newmask);
- sigprocmask(SIG_SETMASK, &newmask, NULL);
- #endif
-+ if (c->opt->execargs != NULL && c->opt->execargs[0] == NULL) {
-+ free(c->opt->execargs);
-+ c->opt->execargs = NULL;
-+ }
-+ if (c->opt->execargs == NULL) {
-+ c->opt->execargs = calloc(2, sizeof(c->opt->execargs[0]));
-+ c->opt->execargs[0] = c->opt->execname;
-+ }
- execvp(c->opt->execname, c->opt->execargs);
- ioerror(c->opt->execname); /* execv failed */
- _exit(1);