summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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);