summaryrefslogtreecommitdiffstats
path: root/usr.bin/infocmp
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-10-10 15:08:49 +0000
committerderaadt <deraadt@openbsd.org>2015-10-10 15:08:49 +0000
commit7f6e6f7074baef7b760603923f877d7d4cea487a (patch)
treef00297ea3c361dac44db127a30ba9875dbdd12b8 /usr.bin/infocmp
parentpledge "stdio proc exec". relies on two recent kernel fixes. (diff)
downloadwireguard-openbsd-7f6e6f7074baef7b760603923f877d7d4cea487a.tar.xz
wireguard-openbsd-7f6e6f7074baef7b760603923f877d7d4cea487a.zip
pledge "stdio rpath" seems to work; ok doug
Diffstat (limited to 'usr.bin/infocmp')
-rw-r--r--usr.bin/infocmp/infocmp.c7
1 files 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 <dump_entry.h>
-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;