aboutsummaryrefslogtreecommitdiffstats
path: root/main/claws-mail/procmime-stdio-locking.patch
blob: 69577da9aaae0811ebe2732cc4a4984a22f9f5d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;