[git] GPGME - branch, master, updated. gpgme-1.9.0-11-g5056598

by Pietro Cerutti cvs at cvs.gnupg.org
Mon Apr 3 12:29:27 CEST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".

The branch, master has been updated
       via  50565982cdd502c3852fcc6f598932bd32b5cdc3 (commit)
      from  5d4f977dac542340c877fdd4b1304fa8f6e058e6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 50565982cdd502c3852fcc6f598932bd32b5cdc3
Author: Pietro Cerutti <gahr at gahr.ch>
Date:   Mon Apr 3 08:31:40 2017 +0000

    FreeBSD's closefrom(2) does not return errors

diff --git a/src/posix-io.c b/src/posix-io.c
index a351806..14856df 100644
--- a/src/posix-io.c
+++ b/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 */

-----------------------------------------------------------------------

Summary of changes:
 src/posix-io.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list