diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-19 22:22:18 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-19 22:22:18 +0000 |
commit | e666495d5bec1a6aebe384303efe5f31db6aed2b (patch) | |
tree | 80acd2a5798eea45c4eaacfe133fe15feed672c1 /games/bs | |
parent | 0333603e546677747279b0dc4cd7292bad1abb7c (diff) |
setgid games, not setuid games. closes a neat set of holes
Diffstat (limited to 'games/bs')
-rw-r--r-- | games/bs/bs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/games/bs/bs.c b/games/bs/bs.c index ad01d608eea..75ab7216a54 100644 --- a/games/bs/bs.c +++ b/games/bs/bs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bs.c,v 1.1 1996/08/21 08:18:36 downsj Exp $ */ +/* $OpenBSD: bs.c,v 1.2 1996/12/19 22:21:13 deraadt Exp $ */ /* * bs.c - original author: Bruce Holloway * salvo option by: Chuck A DeGaul @@ -1203,6 +1203,8 @@ main(argc, argv) int argc; char *argv[]; { + setgid(getgid()); + do_options(argc, argv); intro(); |