diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-21 05:29:43 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-21 05:29:43 +0000 |
commit | 0fa5b655b2ab95669597b618470373d95cf2994d (patch) | |
tree | cf021a7947424f3805909f664ab799ccee2148ff /games/worm | |
parent | d4a846257af831092a95f8b05ca6d1d5e8b82917 (diff) |
pledge the wyrms
Diffstat (limited to 'games/worm')
-rw-r--r-- | games/worm/worm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/games/worm/worm.c b/games/worm/worm.c index b059245ab71..c3f3eeca046 100644 --- a/games/worm/worm.c +++ b/games/worm/worm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: worm.c,v 1.33 2015/11/04 21:22:10 tedu Exp $ */ +/* $OpenBSD: worm.c,v 1.34 2015/11/21 05:29:42 deraadt Exp $ */ /* * Copyright (c) 1980, 1993 @@ -92,6 +92,9 @@ main(int argc, char **argv) const char *errstr; struct timespec t, tn, tdiff; + if (pledge("stdio rpath tty", NULL) == -1) + err(1, "pledge"); + timespecclear(&t); setvbuf(stdout, outbuf, _IOFBF, sizeof outbuf); |