summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2008-12-14 19:21:00 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2008-12-14 19:21:00 +0000
commitfe4ef132e6ba1c0a8cdbe8361f51831757802f04 (patch)
tree21e533bf32b40d4f007d5e8906b9adbadc6aa591 /usr.sbin/smtpd
parent59819af770916f1fda7aa698272cecaf9c56bfdd (diff)
O_TRUNC is redundant if O_EXCL is specified.
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/queue.c b/usr.sbin/smtpd/queue.c
index 9bae9f79bde..23d25209c92 100644
--- a/usr.sbin/smtpd/queue.c
+++ b/usr.sbin/smtpd/queue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue.c,v 1.26 2008/12/14 19:16:06 jacekm Exp $ */
+/* $OpenBSD: queue.c,v 1.27 2008/12/14 19:20:59 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -846,7 +846,7 @@ queue_record_incoming_envelope(struct message *message)
char evpname[MAXPATHLEN];
char message_uid[MAXPATHLEN];
int fd;
- int mode = O_CREAT|O_TRUNC|O_WRONLY|O_EXCL|O_SYNC;
+ int mode = O_CREAT|O_WRONLY|O_EXCL|O_SYNC;
FILE *fp;
int ret;