[git] GPGME - branch, master, updated. gpgme-1.6.0-13-ge791994

by Werner Koch cvs at cvs.gnupg.org
Fri Jan 15 16:21:22 CET 2016


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  e79199468ac54ce4fe919603ff7bada97267174f (commit)
      from  83415dffaea53611dbce77b50d8ddfb2a50aed2e (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 e79199468ac54ce4fe919603ff7bada97267174f
Author: Werner Koch <wk at gnupg.org>
Date:   Fri Jan 15 16:16:38 2016 +0100

    Fix possible _SC_OPEN_MAX max problem on AIX.
    
    * src/posix-io.c [HAVE_STDINT_H]: Include stdint.h.
    (get_max_fds): Limit returned value for too high values.
    --
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/src/posix-io.c b/src/posix-io.c
index ac823fc..e49c71e 100644
--- a/src/posix-io.c
+++ b/src/posix-io.c
@@ -23,6 +23,9 @@
 #endif
 #include <stdio.h>
 #include <stdlib.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
 #include <string.h>
 #include <assert.h>
 #include <errno.h>
@@ -331,6 +334,16 @@ get_max_fds (void)
       fds = 1024;
     }
 
+  /* AIX returns INT32_MAX instead of a proper value.  We assume that
+   * this is always an error and use a more reasonable limit.  */
+#ifdef INT32_MAX
+  if (fds == INT32_MAX)
+    {
+      source = "aix-fix";
+      fds = 1024;
+    }
+#endif
+
   TRACE2 (DEBUG_SYSIO, "gpgme:max_fds", 0, "max fds=%i (%s)", fds, source);
   return fds;
 }

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

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


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




More information about the Gnupg-commits mailing list