Now that tedu moved the score file to $HOME, we can get by with "stdio rpath wpath cpath tty".
Do some basic clean up in the manual. There's more to do, but leave that for later. Index: games/tetris/tetris.6 =================================================================== RCS file: /var/cvs/src/games/tetris/tetris.6,v retrieving revision 1.16 diff -u -p -r1.16 tetris.6 --- games/tetris/tetris.6 27 Jul 2015 18:48:04 -0000 1.16 +++ games/tetris/tetris.6 19 Nov 2015 00:19:47 -0000 @@ -146,8 +146,8 @@ Scores which are the highest on a given are marked with asterisks .Dq * . .Sh FILES -.Bl -tag -width /var/games/tetris.scoresxx -.It Pa /var/games/tetris.scores +.Bl -tag -width $HOME/tetris.scores +.It Pa $HOME/tetris.scores high score file .El .Sh AUTHORS Index: games/tetris/tetris.c =================================================================== RCS file: /var/cvs/src/games/tetris/tetris.c,v retrieving revision 1.25 diff -u -p -r1.25 tetris.c --- games/tetris/tetris.c 16 Nov 2014 04:49:49 -0000 1.25 +++ games/tetris/tetris.c 19 Nov 2015 00:10:01 -0000 @@ -61,7 +61,6 @@ const struct shape *curshape; const struct shape *nextshape; long fallrate; int score; -gid_t gid, egid; char key_msg[100]; int showpreview, classic; @@ -157,11 +156,10 @@ main(int argc, char *argv[]) const char *errstr; int ch, i, j; - keys = "jkl pq"; + if (pledge("stdio rpath wpath cpath tty", NULL) == -1) + err(1, "pledge"); - gid = getgid(); - egid = getegid(); - setegid(gid); + keys = "jkl pq"; classic = showpreview = 0; while ((ch = getopt(argc, argv, "ck:l:ps")) != -1) Index: games/tetris/tetris.h =================================================================== RCS file: /var/cvs/src/games/tetris/tetris.h,v retrieving revision 1.10 diff -u -p -r1.10 tetris.h --- games/tetris/tetris.h 10 Aug 2008 12:23:25 -0000 1.10 +++ games/tetris/tetris.h 19 Nov 2015 00:05:11 -0000 @@ -167,7 +167,6 @@ extern long fallrate; /* less than 1 mil #define PRE_PENALTY 0.75 extern int score; /* the obvious thing */ -extern gid_t gid, egid; extern char key_msg[100]; extern int showpreview;