summaryrefslogtreecommitdiff
path: root/usr.bin/infocmp
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-10 15:08:50 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-10 15:08:50 +0000
commit109fc0de6dfed251db5ac9f2f537914a0e131276 (patch)
tree1d747f399b642932f0cde610b012342a1d7ef2c4 /usr.bin/infocmp
parentc2db8086781aac917a8c5a37f085958a4300341e (diff)
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;