diff options
author | 2008-11-11 21:17:49 +0000 | |
---|---|---|
committer | 2008-11-11 21:17:49 +0000 | |
commit | 29ee1e5255d66f6baa69b8b4aa28a7a69a4ff5e6 (patch) | |
tree | 7a2b8b366a69c5b11c2a445596b14dfa8ff01c77 | |
parent | - introduce queue_init_submissions() which will sanitize the disk-based (diff) | |
download | wireguard-openbsd-29ee1e5255d66f6baa69b8b4aa28a7a69a4ff5e6.tar.xz wireguard-openbsd-29ee1e5255d66f6baa69b8b4aa28a7a69a4ff5e6.zip |
- mistakenly removed this lock
-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 2705294caee..d520cb250d1 100644 --- a/usr.sbin/smtpd/queue.c +++ b/usr.sbin/smtpd/queue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: queue.c,v 1.10 2008/11/11 21:13:14 gilles Exp $ */ +/* $OpenBSD: queue.c,v 1.11 2008/11/11 21:17:49 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -1137,7 +1137,7 @@ queue_update_database(struct message *message) if (spret == -1 || spret >= MAXPATHLEN) fatal("queue_update_database: pathname too long"); - if ((fd = open(pathname, O_RDWR)) == -1) + if ((fd = open(pathname, O_RDWR|O_EXLOCK)) == -1) fatal("queue_update_database: cannot open database"); fp = fdopen(fd, "w"); |