diff options
author | Doug Hogan <doug@cvs.openbsd.org> | 2015-10-14 08:12:13 +0000 |
---|---|---|
committer | Doug Hogan <doug@cvs.openbsd.org> | 2015-10-14 08:12:13 +0000 |
commit | 724d760f63c5382d1d6f9b5f3cbaf200e625f288 (patch) | |
tree | abe8b7d72500d5384fe7f3a0a4b35eb420d30fe4 /games/pom/pom.c | |
parent | 9697e0e3c9e7331691283fff518f3fdc00ae643a (diff) |
Pledge "stdio" for simple games.
ok semarie@
Diffstat (limited to 'games/pom/pom.c')
-rw-r--r-- | games/pom/pom.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/games/pom/pom.c b/games/pom/pom.c index f36d8036fa5..f091b688042 100644 --- a/games/pom/pom.c +++ b/games/pom/pom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pom.c,v 1.16 2015/03/17 19:31:30 millert Exp $ */ +/* $OpenBSD: pom.c,v 1.17 2015/10/14 08:12:12 doug Exp $ */ /* $NetBSD: pom.c,v 1.6 1996/02/06 22:47:29 jtc Exp $ */ /* @@ -85,6 +85,9 @@ main(int argc, char *argv[]) int cnt; char buf[1024]; + if (pledge("stdio", NULL) == -1) + err(1, "pledge"); + if (argc > 1) { tmpt = parsetime(argv[1]); strftime(buf, sizeof(buf), "%a %Y %b %e %H:%M:%S (%Z)", |