aboutsummaryrefslogtreecommitdiffstats
path: root/main/claws-mail/procmime-stdio-locking.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-09-05 11:30:19 +0300
committerTimo Teräs <timo.teras@iki.fi>2014-09-05 11:30:19 +0300
commit9655d9e8c7ca193707ae9f15f60174e3e25602fb (patch)
tree8543c8f7d2c589bde61e0bf629b774b2384281be /main/claws-mail/procmime-stdio-locking.patch
parent12ec771a118487c04ac88783d982851f091bb445 (diff)
downloadaports-9655d9e8c7ca193707ae9f15f60174e3e25602fb.tar.bz2
aports-9655d9e8c7ca193707ae9f15f60174e3e25602fb.tar.xz
main/claws-mail: fix stdio locking issue
Diffstat (limited to 'main/claws-mail/procmime-stdio-locking.patch')
-rw-r--r--main/claws-mail/procmime-stdio-locking.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/claws-mail/procmime-stdio-locking.patch b/main/claws-mail/procmime-stdio-locking.patch
new file mode 100644
index 0000000000..69577da9aa
--- /dev/null
+++ b/main/claws-mail/procmime-stdio-locking.patch
@@ -0,0 +1,13 @@
+diff -ru claws-mail-3.10.1.orig/src/procmime.c claws-mail-3.10.1/src/procmime.c
+--- claws-mail-3.10.1.orig/src/procmime.c 2014-06-09 11:24:17.000000000 -0300
++++ claws-mail-3.10.1/src/procmime.c 2014-09-05 11:26:59.268768631 -0300
+@@ -371,6 +371,9 @@
+ procmime_fclose(infp);
+ return FALSE;
+ }
++#ifdef HAVE_FGETS_UNLOCKED
++ flockfile(outfp);
++#endif
+ tmp_file = TRUE;
+ readend = mimeinfo->offset + mimeinfo->length;
+