=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/infocmp/infocmp.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- src/usr.bin/infocmp/infocmp.c 2010/01/12 23:22:13 1.20 +++ src/usr.bin/infocmp/infocmp.c 2015/10/10 15:08:49 1.21 @@ -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 "}" @@ -1281,6 +1281,9 @@ int initdump = 0; 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;