opnsense-ports/mail/qmail/files/extra-patch-maildir++
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

11 lines
530 B
Text

--- qmail-local.c.orig 2012-10-11 10:22:24.000000000 -0300
+++ qmail-local.c 2012-10-11 10:23:24.000000000 -0300
@@ -109,7 +109,7 @@
s += fmt_strn(s,host,sizeof(host));
s += fmt_strn(s,",S=",sizeof(",S="));
if (fstat(0,&st) == -1) if (errno == error_noent) break;
- s += fmt_ulong(s,st.st_size); *s++ = 0;
+ s += fmt_ulong(s,st.st_size+rpline.len+dtline.len); *s++ = 0;
if (stat(fntmptph,&st) == -1) if (errno == error_noent) break;
/* really should never get to this point */
if (loop == 2) _exit(1);