summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-10 14:56:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-10 14:56:51 +0000
commit4ed7ae1e8e56c8e517d3e0e5fad066370e97a58b (patch)
tree0d3fa8453a0e7103a1f260fe25a0921470886905 /games
parent1132edde58ab1fa820b54b09de199bd53631b91f (diff)
pledge "stdio rpath" at the top. (Ricardo's 2nd chunk which reduces
further is not placed right, so I ignored it for now) from Ricardo Mestre
Diffstat (limited to 'games')
-rw-r--r--games/fortune/fortune/fortune.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c
index 5c137495226..ddb76daab56 100644
--- a/games/fortune/fortune/fortune.c
+++ b/games/fortune/fortune/fortune.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fortune.c,v 1.45 2015/11/10 14:50:04 deraadt Exp $ */
+/* $OpenBSD: fortune.c,v 1.46 2015/11/10 14:56:50 deraadt Exp $ */
/* $NetBSD: fortune.c,v 1.8 1995/03/23 08:28:40 cgd Exp $ */
/*-
@@ -149,6 +149,11 @@ regex_t regex;
int
main(int ac, char *av[])
{
+ if (pledge("stdio rpath", NULL) == -1) {
+ perror("pledge");
+ exit(1);
+ }
+
getargs(ac, av);
if (Match)