summaryrefslogtreecommitdiff
path: root/usr.sbin/spamdb
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-11 16:10:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-11 16:10:22 +0000
commit9f3e4c19d464bd841a83e18c3d1b6460271db69e (patch)
tree69f48f1a981bea7f123a01c4190d66ab6ca4529c /usr.sbin/spamdb
parent8f25338363d528ee662fdc8c4a5c46c862b37d27 (diff)
bottom end of spamdb is just "stdio rpath wpath"
originally from ricardo mestre, but diff was cut down a bit
Diffstat (limited to 'usr.sbin/spamdb')
-rw-r--r--usr.sbin/spamdb/spamdb.c5
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);