summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2011-12-15 17:23:55 +0000
committerEric Faurot <eric@cvs.openbsd.org>2011-12-15 17:23:55 +0000
commit28da69714d77e626cfd7169925df870feb9acc1a (patch)
tree74439bbaea53288fe0389ad3b5e88dab5066e095 /usr.sbin/smtpd
parent04d718a32dc5c7c0d9c34e1efccc7ba0e3152033 (diff)
all leading dots must be duplicated.
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/enqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/enqueue.c b/usr.sbin/smtpd/enqueue.c
index 78ab6b796cb..a945bc19bcd 100644
--- a/usr.sbin/smtpd/enqueue.c
+++ b/usr.sbin/smtpd/enqueue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: enqueue.c,v 1.49 2011/11/14 16:54:19 eric Exp $ */
+/* $OpenBSD: enqueue.c,v 1.50 2011/12/15 17:23:54 eric Exp $ */
/*
* Copyright (c) 2005 Henning Brauer <henning@bulabula.org>
@@ -252,7 +252,7 @@ enqueue(int argc, char *argv[])
if (buf[len-1] != '\n')
errx(1, "expect EOL");
- if (len == 2 && buf[0] == '.')
+ if (buf[0] == '.')
fputc('.', fout);
fprintf(fout, "%.*s", (int)len, buf);
}