From 386a73ae06f996ff5427dd8921793a70cacc1240 Mon Sep 17 00:00:00 2001 From: gilles Date: Fri, 16 Oct 2015 20:54:55 +0000 Subject: [PATCH] add flock to pledge request, needed by delivery_filename ok millert@ --- usr.sbin/smtpd/smtpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c index 099cd595c9c..d8222dbca86 100644 --- a/usr.sbin/smtpd/smtpd.c +++ b/usr.sbin/smtpd/smtpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.c,v 1.247 2015/10/14 19:56:58 gilles Exp $ */ +/* $OpenBSD: smtpd.c,v 1.248 2015/10/16 20:54:55 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -690,7 +690,7 @@ main(int argc, char *argv[]) purge_task(); - if (pledge("stdio rpath wpath cpath tmppath getpw sendfd proc exec", NULL) == -1) + if (pledge("stdio rpath wpath cpath flock tmppath getpw sendfd proc exec", NULL) == -1) err(1, "pledge"); if (event_dispatch() < 0) -- 2.20.1