From: deraadt Date: Sat, 10 Oct 2015 15:47:22 +0000 (+0000) Subject: basic pledge "stdio rpath" X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ee75a89a33ca5dc34432b2c5563d54bf51526da0;p=openbsd basic pledge "stdio rpath" ok doug --- diff --git a/usr.bin/tsort/tsort.c b/usr.bin/tsort/tsort.c index da5782ebc62..442591a7cde 100644 --- a/usr.bin/tsort/tsort.c +++ b/usr.bin/tsort/tsort.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tsort.c,v 1.29 2015/09/03 11:16:50 espie Exp $ */ +/* $OpenBSD: tsort.c,v 1.30 2015/10/10 15:47:22 deraadt Exp $ */ /* ex:ts=8 sw=4: * * Copyright (c) 1999-2004 Marc Espie @@ -977,6 +977,9 @@ main(int argc, char *argv[]) { struct ohash pairs; + if (pledge("stdio rpath", NULL) == -1) + err(1, "pledge"); + parse_args(argc, argv, &pairs); return tsort(&pairs); }