From 6ed9540b449e93229746c69416887932c0cf6813 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 10 Oct 2015 19:11:04 +0000 Subject: [PATCH] pledge "stdio rpath wpath cpath" ok doug --- usr.bin/spell/spellprog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.bin/spell/spellprog.c b/usr.bin/spell/spellprog.c index 00bd131b53f..6cfda60252b 100644 --- a/usr.bin/spell/spellprog.c +++ b/usr.bin/spell/spellprog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spellprog.c,v 1.11 2015/02/08 23:40:34 deraadt Exp $ */ +/* $OpenBSD: spellprog.c,v 1.12 2015/10/10 19:11:04 deraadt Exp $ */ /* * Copyright (c) 1991, 1993 @@ -249,6 +249,9 @@ main(int argc, char **argv) setlocale(LC_ALL, ""); + if (pledge("stdio rpath wpath cpath", NULL) == -1) + err(1, "pledge"); + outfile = NULL; while ((ch = getopt(argc, argv, "bvxo:")) != -1) { switch (ch) { -- 2.20.1