summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/smtpd/store.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.sbin/smtpd/store.c b/usr.sbin/smtpd/store.c
index 3e0ba7ce19f..1ddf8428ee6 100644
--- a/usr.sbin/smtpd/store.c
+++ b/usr.sbin/smtpd/store.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: store.c,v 1.26 2009/08/18 18:38:05 gilles Exp $ */
+/* $OpenBSD: store.c,v 1.27 2009/09/02 10:00:58 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -149,12 +149,7 @@ store_message(struct batch *batchp, struct message *messagep)
if (fstat(batchp->sessionp->mboxfd, &sb) == -1)
return 0;
- if (! store_write_message(batchp, messagep)) {
- if (S_ISREG(sb.st_mode)) {
- ftruncate(batchp->sessionp->mboxfd, sb.st_size);
- return 0;
- }
+ if (! store_write_message(batchp, messagep))
return 0;
- }
return 1;
}