diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-10-16 13:37:45 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-10-16 13:37:45 +0000 |
commit | 7d5bc0b4eff009809546d4ef502ce93f83d2300c (patch) | |
tree | 915823249236a820f51cb63ee5be2eba08a7c658 /usr.sbin/smtpd/smtpctl.c | |
parent | 0f5a35a5bb1e5927d12e3adf52222f42e7c37280 (diff) |
Implement real "flock" request and add it to userland programs that
use pledge and file locking. OK deraadt@
Diffstat (limited to 'usr.sbin/smtpd/smtpctl.c')
-rw-r--r-- | usr.sbin/smtpd/smtpctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpctl.c b/usr.sbin/smtpd/smtpctl.c index a198a952886..d34e5b2d343 100644 --- a/usr.sbin/smtpd/smtpctl.c +++ b/usr.sbin/smtpd/smtpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpctl.c,v 1.131 2015/10/15 08:18:23 sunil Exp $ */ +/* $OpenBSD: smtpctl.c,v 1.132 2015/10/16 13:37:44 millert Exp $ */ /* * Copyright (c) 2013 Eric Faurot <eric@openbsd.org> @@ -932,7 +932,7 @@ main(int argc, char **argv) err(1, "setresgid"); /* we'll reduce further down the road */ - if (pledge("stdio rpath tmppath getpw recvfd", NULL) == -1) + if (pledge("stdio rpath tmppath flock getpw recvfd", NULL) == -1) err(1, "pledge"); sendmail = 1; |