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/bcd/bcd.c | |
parent | 0333603e546677747279b0dc4cd7292bad1abb7c (diff) |
setgid games, not setuid games. closes a neat set of holes
Diffstat (limited to 'games/bcd/bcd.c')
-rw-r--r-- | games/bcd/bcd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/games/bcd/bcd.c b/games/bcd/bcd.c index 69ee9a13a3d..ba6f11bf605 100644 --- a/games/bcd/bcd.c +++ b/games/bcd/bcd.c @@ -134,6 +134,8 @@ main(argc, argv) * but this seems kind of silly. So this one doesn't. */ + setgid(getgid()); + if (argc > 1) { while (--argc) printcard(*++argv); |