]> git.pld-linux.org Git - packages/exim.git/blobdiff - exim-git.patch
- rel 10; update upstream git fixes
[packages/exim.git] / exim-git.patch
index 0699820e026673e2c0acc3474db1a8e1ae098887..915f246d2025318ae726a25bc44fcad917adc285 100644 (file)
@@ -1362,3 +1362,33 @@ index 618364a..cc9ffb7 100644
  
      nested_context.context =
        context && context->context == MBC_ATTACHMENT
+
+commit 8d58e3501ce731c5d6d5efc9e76058832d4bc941
+Author: Jeremy Harris <jgh146exb@wizmail.org>
+Date:   Thu Jan 21 15:37:08 2016 +0000
+
+    Cutthrough: Fix bug with dot-only line
+    
+    (cherry picked from commit 1bc460a64a0de0766d21f4f8660c6597bc410cbc)
+
+diff --git a/src/src/receive.c b/src/src/receive.c
+index 64cf1ae..d1f81d3 100644
+--- a/src/src/receive.c
++++ b/src/src/receive.c
+@@ -835,7 +835,15 @@ while ((ch = (receive_getc)()) != EOF)
+       ch_state = 4;
+       continue;
+       }
+-    ch_state = 1;                       /* The dot itself is removed */
++    /* The dot was removed at state 3. For a doubled dot, here, reinstate
++    it to cutthrough. The current ch, dot or not, is passed both to cutthrough
++    and to file below. */
++    if (ch == '.')
++      {
++      uschar c= ch;
++      (void) cutthrough_puts(&c, 1);
++      }
++    ch_state = 1;
+     break;
+     case 4:                             /* After [CR] LF . CR */
This page took 0.240007 seconds and 4 git commands to generate.