From 7f6e6f7074baef7b760603923f877d7d4cea487a Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 10 Oct 2015 15:08:49 +0000 Subject: [PATCH] pledge "stdio rpath" seems to work; ok doug --- usr.bin/infocmp/infocmp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; -- 2.20.1