From ee75a89a33ca5dc34432b2c5563d54bf51526da0 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 10 Oct 2015 15:47:22 +0000 Subject: [PATCH] basic pledge "stdio rpath" ok doug --- usr.bin/tsort/tsort.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.20.1