diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2011-12-15 17:23:55 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2011-12-15 17:23:55 +0000 |
commit | 28da69714d77e626cfd7169925df870feb9acc1a (patch) | |
tree | 74439bbaea53288fe0389ad3b5e88dab5066e095 /usr.sbin/smtpd | |
parent | 04d718a32dc5c7c0d9c34e1efccc7ba0e3152033 (diff) |
all leading dots must be duplicated.
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/enqueue.c | 4 |
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); } |