diff options
Diffstat (limited to 'usr.sbin/spamdb')
-rw-r--r-- | usr.sbin/spamdb/spamdb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/spamdb/spamdb.c b/usr.sbin/spamdb/spamdb.c index cd2f489dff1..3eec1fb1fe7 100644 --- a/usr.sbin/spamdb/spamdb.c +++ b/usr.sbin/spamdb/spamdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamdb.c,v 1.29 2013/11/24 01:06:19 deraadt Exp $ */ +/* $OpenBSD: spamdb.c,v 1.30 2015/11/11 16:10:21 deraadt Exp $ */ /* * Copyright (c) 2004 Bob Beck. All rights reserved. @@ -308,6 +308,9 @@ main(int argc, char **argv) action ? "writing" : "reading"); } + if (pledge("stdio rpath wpath", NULL) == -1) + err(1, "pledge"); + switch (action) { case 0: return dblist(db); |