From 28da69714d77e626cfd7169925df870feb9acc1a Mon Sep 17 00:00:00 2001 From: Eric Faurot Date: Thu, 15 Dec 2011 17:23:55 +0000 Subject: all leading dots must be duplicated. ok gilles@ --- usr.sbin/smtpd/enqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') 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 @@ -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); } -- cgit v1.2.3