diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-10 14:27:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-10 14:27:44 +0000 |
commit | 1914815ade87618febcdbca61ed82500262f2fbb (patch) | |
tree | 1a42995f4f6e49c7394775368263e9f724b1aa7c /usr.bin/tic | |
parent | 965c1dbb3f3687eb56db683cb1126a49a7ab06b2 (diff) |
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
Diffstat (limited to 'usr.bin/tic')
-rw-r--r-- | usr.bin/tic/tic.c | 7 |
1 files 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 <dump_entry.h> #include <transform.h> -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]); |