diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2008-11-11 21:17:50 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2008-11-11 21:17:50 +0000 |
commit | 986c635b69c9c69727ae0e32db39cf39622d5c10 (patch) | |
tree | 6882437788b031fad91dc936b635a46e66ad0b48 | |
parent | f1dd1c28bcd0f255b550709592cafc556407ae6b (diff) |
- 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"); |