diff options
author | steve <steve@FreeBSD.org> | 1999-04-19 03:59:02 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1999-04-19 03:59:02 +0000 |
commit | d59a3ca336bac3dac6ad8918ff6cb28fcbbba718 (patch) | |
tree | c2b57d23128f242645f8e3e16274a587229383ec /games/caesar | |
parent | 390eb1b3d201760a5e8b76e2431c1f667648718f (diff) | |
download | FreeBSD-src-d59a3ca336bac3dac6ad8918ff6cb28fcbbba718.zip FreeBSD-src-d59a3ca336bac3dac6ad8918ff6cb28fcbbba718.tar.gz |
Merge a bunch of cleanups from NetBSD.
PR: 8083
Submitted by: Stephen J. Roznowski <sjr@home.net>
Obtained from: a whole slew of NetBSD PRs
Diffstat (limited to 'games/caesar')
-rw-r--r-- | games/caesar/caesar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/games/caesar/caesar.c b/games/caesar/caesar.c index 749da50..b227b57 100644 --- a/games/caesar/caesar.c +++ b/games/caesar/caesar.c @@ -83,6 +83,9 @@ void main(argc, argv) register char *inbuf; int obs[26], try, winner; + /* revoke setgid privileges */ + setgid(getgid()); + if (argc > 1) printit(argv[1]); |