artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d967289
)
reduce pledge(2) to "stdio tty" after ncurses initialization.
author
mestre
<mestre@openbsd.org>
Thu, 23 Aug 2018 06:25:01 +0000
(06:25 +0000)
committer
mestre
<mestre@openbsd.org>
Thu, 23 Aug 2018 06:25:01 +0000
(06:25 +0000)
OK tb@
games/grdc/grdc.c
patch
|
blob
|
history
diff --git
a/games/grdc/grdc.c
b/games/grdc/grdc.c
index
d6a02e7
..
8af4e73
100644
(file)
--- a/
games/grdc/grdc.c
+++ b/
games/grdc/grdc.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: grdc.c,v 1.2
8 2017/12/11 23:33:44 tb Exp $
*/
+/* $OpenBSD: grdc.c,v 1.2
9 2018/08/23 06:25:01 mestre Exp $
*/
/*
*
* Copyright 2002 Amos Shapir. Public domain.
@@
-97,6
+97,9
@@
main(int argc, char *argv[])
initscr();
+ if (pledge("stdio tty", NULL) == -1)
+ err(1, "pledge");
+
signal(SIGINT,sighndl);
signal(SIGTERM,sighndl);
signal(SIGHUP,sighndl);