summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-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;