From 7554f07447b5157057b5873cee1a9b59824ca656 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 10 Oct 2015 14:27:43 +0000 Subject: [PATCH] pledge "stdio rpath wpath cpath". as a curses program, I expected this to maybe need "tty", but have not found a path which calls those kind of curses functions. ok doug --- usr.bin/tic/tic.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr.bin/tic/tic.c b/usr.bin/tic/tic.c index d55f609ee3f..7d8eba8d7c1 100644 --- a/usr.bin/tic/tic.c +++ b/usr.bin/tic/tic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tic.c,v 1.31 2013/11/28 18:24:55 deraadt Exp $ */ +/* $OpenBSD: tic.c,v 1.32 2015/10/10 14:27:43 deraadt Exp $ */ /**************************************************************************** * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. * @@ -46,7 +46,7 @@ #include #include -MODULE_ID("$Id: tic.c,v 1.31 2013/11/28 18:24:55 deraadt Exp $") +MODULE_ID("$Id: tic.c,v 1.32 2015/10/10 14:27:43 deraadt Exp $") const char *_nc_progname = "tic"; @@ -499,6 +499,9 @@ main(int argc, char *argv[]) bool check_only = FALSE; bool suppress_untranslatable = FALSE; + if (pledge("stdio rpath wpath cpath", NULL) == -1) + perror("pledge"); + log_fp = stderr; _nc_progname = _nc_rootname(argv[0]); -- 2.20.1