summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-09-02 10:00:59 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-09-02 10:00:59 +0000
commit00db09ae51f2b02b4dd671f59cd794e50de8946c (patch)
tree7aabdbc942f7d05da724c8dc54060a9e03031211 /usr.sbin
parentef72787b4cec5604db178a734089c7630b4f1e9d (diff)
remove dead code, gilles ok
Diffstat (limited to 'usr.sbin')
-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;
}