summaryrefslogtreecommitdiff
path: root/security/gpgme/files/patch-git_5056598
diff options
context:
space:
mode:
authorJason E. Hale <jhale@FreeBSD.org>2017-04-05 20:13:00 +0000
committerJason E. Hale <jhale@FreeBSD.org>2017-04-05 20:13:00 +0000
commitf9d0b63e5bb79260904ec1be6d441550c9f8acfc (patch)
tree3a199f208c0a5569da352e1b0ef7c0c9dd165c78 /security/gpgme/files/patch-git_5056598
parentNew port, devel/rubygem-appraisal: Integrates with bundler and rake to test (diff)
Update security/gpgme and friends to 1.9.0 [1]
Fix LICENSE Add regression test support for master port. Slave port tests are not working properly and need further investigation. PR: 218316 (based on) [1] Submitted by: gahr [1] Changes: https://lists.gnupg.org/pipermail/gnupg-users/2017-March/057963.html
Notes
Notes: svn path=/head/; revision=437834
Diffstat (limited to 'security/gpgme/files/patch-git_5056598')
-rw-r--r--security/gpgme/files/patch-git_505659830
1 files changed, 30 insertions, 0 deletions
diff --git a/security/gpgme/files/patch-git_5056598 b/security/gpgme/files/patch-git_5056598
new file mode 100644
index 000000000000..fde60e1555ad
--- /dev/null
+++ b/security/gpgme/files/patch-git_5056598
@@ -0,0 +1,30 @@
+From: Pietro Cerutti <gahr@gahr.ch>
+Date: Mon, 3 Apr 2017 08:31:40 +0000 (+0000)
+Subject: FreeBSD's closefrom(2) does not return errors
+X-Git-Url: http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=commitdiff_plain;h=50565982cdd502c3852fcc6f598932bd32b5cdc3
+
+FreeBSD's closefrom(2) does not return errors
+---
+
+diff --git a/src/posix-io.c b/src/posix-io.c
+index a351806..14856df 100644
+--- src/posix-io.c
++++ src/posix-io.c
+@@ -473,7 +473,7 @@ _gpgme_io_spawn (const char *path, char *const argv[], unsigned int flags,
+ * have closefrom(2) we first figure out the highest fd we
+ * do not want to close, then call closefrom, and on success
+ * use the regular code to close all fds up to the start
+- * point of closefrom. Note that Solaris' closefrom does
++ * point of closefrom. Note that Solaris' and FreeBSD's closefrom do
+ * not return errors. */
+ #ifdef HAVE_CLOSEFROM
+ {
+@@ -482,7 +482,7 @@ _gpgme_io_spawn (const char *path, char *const argv[], unsigned int flags,
+ if (fd_list[i].fd > fd)
+ fd = fd_list[i].fd;
+ fd++;
+-#ifdef __sun
++#if defined(__sun) || defined(__FreeBSD__)
+ closefrom (fd);
+ max_fds = fd;
+ #else /*!__sun */