[git] GnuPG - branch, STABLE-BRANCH-2-2, updated. gnupg-2.2.6-39-gf7f3043

by Werner Koch cvs at cvs.gnupg.org
Wed May 2 19:10:37 CEST 2018


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 "The GNU Privacy Guard".

The branch, STABLE-BRANCH-2-2 has been updated
       via  f7f3043653abe699602f910ddd09c1405675c7f6 (commit)
      from  007dde93cc3971cb51d08e8c082e172506ae7f80 (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 f7f3043653abe699602f910ddd09c1405675c7f6
Author: Werner Koch <wk at gnupg.org>
Date:   Wed May 2 19:03:07 2018 +0200

    gpg: Fix "Too many open files" when using --multifile.
    
    * common/miscellaneous.c (is_file_compressed): Don't cache the file.
    --
    
    This seems to be a pretty old bug.  The fix is easy and also reveals
    that -z0 can be used as a workaround.
    
    GnuPG-bug-id: 3951
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/common/miscellaneous.c b/common/miscellaneous.c
index caeb66f..62ac05a 100644
--- a/common/miscellaneous.c
+++ b/common/miscellaneous.c
@@ -401,6 +401,7 @@ is_file_compressed (const char *s, int *ret_rc)
         *ret_rc = gpg_error_from_syserror ();
         return 0;
     }
+    iobuf_ioctl (a, IOBUF_IOCTL_NO_CACHE, 1, NULL);
 
     if ( iobuf_get_filelength( a, &overflow ) < 6 && !overflow) {
         *ret_rc = 0;

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

Summary of changes:
 common/miscellaneous.c | 1 +
 1 file changed, 1 insertion(+)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list