diff options
author | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2008-12-14 19:24:43 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2008-12-14 19:24:43 +0000 |
commit | e7f60ca40cd88b92c5c067be056fc82eb6bf0e8b (patch) | |
tree | 4aa1922365904f53adadb0fd4dffb6807f139db8 | |
parent | fe4ef132e6ba1c0a8cdbe8361f51831757802f04 (diff) |
O_TRUNC is redundant if O_EXCL is specified.
ok gilles@
-rw-r--r-- | usr.sbin/smtpd/queue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/queue.c b/usr.sbin/smtpd/queue.c index 23d25209c92..eb6f500be7c 100644 --- a/usr.sbin/smtpd/queue.c +++ b/usr.sbin/smtpd/queue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: queue.c,v 1.27 2008/12/14 19:20:59 jacekm Exp $ */ +/* $OpenBSD: queue.c,v 1.28 2008/12/14 19:24:42 jacekm Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -997,7 +997,7 @@ queue_record_envelope(struct message *messagep) 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; u_int16_t hval; |