From: deraadt Date: Sat, 10 Oct 2015 14:27:43 +0000 (+0000) Subject: pledge "stdio rpath wpath cpath". as a curses program, I expected this X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7554f07447b5157057b5873cee1a9b59824ca656;p=openbsd 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 --- 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]);