summaryrefslogtreecommitdiffstats
path: root/games/caesar
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-04-19 03:59:02 +0000
committersteve <steve@FreeBSD.org>1999-04-19 03:59:02 +0000
commitd59a3ca336bac3dac6ad8918ff6cb28fcbbba718 (patch)
treec2b57d23128f242645f8e3e16274a587229383ec /games/caesar
parent390eb1b3d201760a5e8b76e2431c1f667648718f (diff)
downloadFreeBSD-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.c3
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]);
OpenPOWER on IntegriCloud