summaryrefslogtreecommitdiff
path: root/games/trek
diff options
context:
space:
mode:
authorRicardo Mestre <mestre@cvs.openbsd.org>2018-08-09 17:51:23 +0000
committerRicardo Mestre <mestre@cvs.openbsd.org>2018-08-09 17:51:23 +0000
commitd4ab8d89ad7fc02d58c439d8c50a5a93c5520e0d (patch)
tree0533f47e1c702f9a8bba322035deba846f9fe5db /games/trek
parent560651bab8f17c0b1c159eefa6d26e89e6111d16 (diff)
The game is playable without the need to access any files therefore we can
effectively disable all fs access by dropping "rpath wpath cpath" from pledge(2) right at the beginning of the program. "looks right" tb@
Diffstat (limited to 'games/trek')
-rw-r--r--games/trek/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/trek/main.c b/games/trek/main.c
index a1f952f32dc..d4b348b4c2a 100644
--- a/games/trek/main.c
+++ b/games/trek/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.17 2016/01/07 16:00:33 tb Exp $ */
+/* $OpenBSD: main.c,v 1.18 2018/08/09 17:51:22 mestre Exp $ */
/* $NetBSD: main.c,v 1.4 1995/04/22 10:59:10 cgd Exp $ */
/*
@@ -121,7 +121,7 @@ main(int argc, char **argv)
int ac;
char **av;
- if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ if (pledge("stdio", NULL) == -1)
err(1, "pledge");
av = argv;