diff options
author | eivind <eivind@FreeBSD.org> | 1997-09-01 00:34:51 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1997-09-01 00:34:51 +0000 |
commit | d8e95d8c1a6a0918fc9dda2ca247833ad222696d (patch) | |
tree | 42fed91af49ba9290d473dbe68d13f3f33e7545c /games/random | |
parent | ff4b4c1d18cef70a372542d0a1a7a48e6543cf9e (diff) | |
download | FreeBSD-src-d8e95d8c1a6a0918fc9dda2ca247833ad222696d.zip FreeBSD-src-d8e95d8c1a6a0918fc9dda2ca247833ad222696d.tar.gz |
Change games from setuid games to setgid games.
Reviewed by: maybe@yes.no
Obtained from: OpenBSD (mostly deraadt@openbsd.org)
Diffstat (limited to 'games/random')
-rw-r--r-- | games/random/random.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/games/random/random.c b/games/random/random.c index 076990b..94c75f7 100644 --- a/games/random/random.c +++ b/games/random/random.c @@ -66,6 +66,10 @@ main(argc, argv) int ch, random_exit, selected, unbuffer_output; char *ep; + /* revoke */ + setegid(getgid()); + setgid(getgid()); + random_exit = unbuffer_output = 0; while ((ch = getopt(argc, argv, "er")) != EOF) switch (ch) { |