summaryrefslogtreecommitdiff
path: root/games/caesar/caesar.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-19 22:22:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-19 22:22:18 +0000
commite666495d5bec1a6aebe384303efe5f31db6aed2b (patch)
tree80acd2a5798eea45c4eaacfe133fe15feed672c1 /games/caesar/caesar.c
parent0333603e546677747279b0dc4cd7292bad1abb7c (diff)
setgid games, not setuid games. closes a neat set of holes
Diffstat (limited to 'games/caesar/caesar.c')
-rw-r--r--games/caesar/caesar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/games/caesar/caesar.c b/games/caesar/caesar.c
index 80e41acf187..dd9a0f2d447 100644
--- a/games/caesar/caesar.c
+++ b/games/caesar/caesar.c
@@ -85,6 +85,8 @@ main(argc, argv)
int obs[26], try, winner;
char *malloc(), *strerror();
+ setgid(getgid());
+
if (argc > 1)
printit(argv[1]);