From 109fc0de6dfed251db5ac9f2f537914a0e131276 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 10 Oct 2015 15:08:50 +0000 Subject: pledge "stdio rpath" seems to work; ok doug --- usr.bin/infocmp/infocmp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'usr.bin/infocmp') diff --git a/usr.bin/infocmp/infocmp.c b/usr.bin/infocmp/infocmp.c index ebd98279a5c..dc6d424cea6 100644 --- a/usr.bin/infocmp/infocmp.c +++ b/usr.bin/infocmp/infocmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: infocmp.c,v 1.20 2010/01/12 23:22:13 nicm Exp $ */ +/* $OpenBSD: infocmp.c,v 1.21 2015/10/10 15:08:49 deraadt Exp $ */ /**************************************************************************** * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. * @@ -44,7 +44,7 @@ #include -MODULE_ID("$Id: infocmp.c,v 1.20 2010/01/12 23:22:13 nicm Exp $") +MODULE_ID("$Id: infocmp.c,v 1.21 2015/10/10 15:08:49 deraadt Exp $") #define L_CURL "{" #define R_CURL "}" @@ -1282,6 +1282,9 @@ main(int argc, char *argv[]) bool init_analyze = FALSE; bool suppress_untranslatable = FALSE; + if (pledge("stdio rpath", NULL) == -1) + perror("pledge"); + /* where is the terminfo database location going to default to? */ restdir = firstdir = 0; -- cgit v1.2.3