summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Piotr Żołnowski <aidecoe@gentoo.org>2019-11-19 22:12:01 +0000
committerAmadeusz Piotr Żołnowski <aidecoe@gentoo.org>2019-11-19 22:12:27 +0000
commite82526f2930f637aaaaf23c19bc22aedb11fe9ba (patch)
treed06a8d40f88cefcd47b755aa0db2a20c83c3729f /net-mail/notmuch/files
parentwww-apache/mod_authnz_external: refer to www-apache/pwauth (diff)
downloadgentoo-e82526f2930f637aaaaf23c19bc22aedb11fe9ba.tar.gz
gentoo-e82526f2930f637aaaaf23c19bc22aedb11fe9ba.tar.bz2
gentoo-e82526f2930f637aaaaf23c19bc22aedb11fe9ba.zip
net-mail/notmuch: Fix notmuch-dump sigabrt
Thanks to Ralph Seichter for providing the patch. Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Amadeusz Piotr Żołnowski <aidecoe@gentoo.org>
Diffstat (limited to 'net-mail/notmuch/files')
-rw-r--r--net-mail/notmuch/files/0.29.2-0001-notmuch-dump.c-Fix-output-file-being-closed-twice.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/net-mail/notmuch/files/0.29.2-0001-notmuch-dump.c-Fix-output-file-being-closed-twice.patch b/net-mail/notmuch/files/0.29.2-0001-notmuch-dump.c-Fix-output-file-being-closed-twice.patch
new file mode 100644
index 00000000000..cafef61ce75
--- /dev/null
+++ b/net-mail/notmuch/files/0.29.2-0001-notmuch-dump.c-Fix-output-file-being-closed-twice.patch
@@ -0,0 +1,20 @@
+--- a/notmuch-dump.c 2019-07-24 17:11:02.899384482 +0200
++++ b/notmuch-dump.c 2019-07-24 17:12:08.100487117 +0200
+@@ -329,13 +329,15 @@
+ }
+ }
+
+- if (gzclose_w (output) != Z_OK) {
++ ret = gzclose_w (output);
++ if (ret) {
+ fprintf (stderr, "Error closing %s: %s\n", name_for_error,
+ gzerror (output, NULL));
+ ret = EXIT_FAILURE;
+ output = NULL;
+ goto DONE;
+- }
++ } else
++ output = NULL;
+
+ if (output_file_name) {
+ ret = rename (tempname, output_file_name);