1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-05-31 22:18:03 +02:00

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@gnupg.org>
This commit is contained in:
Werner Koch 2018-05-02 19:03:07 +02:00
parent 007dde93cc
commit f7f3043653
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -401,6 +401,7 @@ is_file_compressed (const char *s, int *ret_rc)
*ret_rc = gpg_error_from_syserror (); *ret_rc = gpg_error_from_syserror ();
return 0; return 0;
} }
iobuf_ioctl (a, IOBUF_IOCTL_NO_CACHE, 1, NULL);
if ( iobuf_get_filelength( a, &overflow ) < 6 && !overflow) { if ( iobuf_get_filelength( a, &overflow ) < 6 && !overflow) {
*ret_rc = 0; *ret_rc = 0;