summaryrefslogtreecommitdiff
path: root/games/grdc
diff options
context:
space:
mode:
authortb <tb@cvs.openbsd.org>2015-11-30 08:46:08 +0000
committertb <tb@cvs.openbsd.org>2015-11-30 08:46:08 +0000
commit274138b436de6084d096489dd5da29a0c4064255 (patch)
tree5939c81a50b4c76d506be021623810eedf58c1d3 /games/grdc
parentc776de302ba924aa1ff9d2a2ba93d48182dafe9f (diff)
unspectacular pledge "stdio rpath tty" for grdc
Diffstat (limited to 'games/grdc')
-rw-r--r--games/grdc/grdc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/games/grdc/grdc.c b/games/grdc/grdc.c
index 1b33b01c803..0777fbe4d63 100644
--- a/games/grdc/grdc.c
+++ b/games/grdc/grdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grdc.c,v 1.19 2014/11/19 03:27:45 schwarze Exp $ */
+/* $OpenBSD: grdc.c,v 1.20 2015/11/30 08:46:07 tb Exp $ */
/*
*
* Copyright 2002 Amos Shapir. Public domain.
@@ -70,6 +70,9 @@ main(int argc, char *argv[])
int ybase;
int wintoosmall;
+ if (pledge("stdio rpath tty", NULL) == -1)
+ err(1, "pledge");
+
scrol = wintoosmall = 0;
while ((i = getopt(argc, argv, "sh")) != -1)
switch (i) {