git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix pipe transport to not use a socket-only syscall. Bug 2257
[exim.git]
/
src
/
src
/
spool_mbox.c
diff --git
a/src/src/spool_mbox.c
b/src/src/spool_mbox.c
index 4326340948f59904457e77eff8f2fdae083ac70c..749484f2b0974bd891dffaf847033731de4f7b4d 100644
(file)
--- a/
src/src/spool_mbox.c
+++ b/
src/src/spool_mbox.c
@@
-4,7
+4,7
@@
/* Copyright (c) Tom Kistner <tom@duncanthrax.net> 2003 - 2015
* License: GPL
/* Copyright (c) Tom Kistner <tom@duncanthrax.net> 2003 - 2015
* License: GPL
- * Copyright (c) The Exim Maintainers 2016
+ * Copyright (c) The Exim Maintainers 2016
- 2018
*/
/* Code for setting up a MBOX style spool file inside a /scan/<msgid>
*/
/* Code for setting up a MBOX style spool file inside a /scan/<msgid>
@@
-132,7
+132,7
@@
if (!spool_mbox_ok)
/* The code used to use this line, but it doesn't work in Cygwin.
(void)fread(data_buffer, 1, 18, data_file);
/* The code used to use this line, but it doesn't work in Cygwin.
(void)fread(data_buffer, 1, 18, data_file);
-
+
What's happening is that spool_mbox used to use an fread to jump over the
file header. That fails under Cygwin because the header is locked, but
doing an fseek succeeds. We have to output the leading newline
What's happening is that spool_mbox used to use an fread to jump over the
file header. That fails under Cygwin because the header is locked, but
doing an fseek succeeds. We have to output the leading newline