From: deraadt Date: Sat, 10 Oct 2015 19:11:04 +0000 (+0000) Subject: pledge "stdio rpath wpath cpath" X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6ed9540b449e93229746c69416887932c0cf6813;p=openbsd pledge "stdio rpath wpath cpath" ok doug --- 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) {