summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-10-22 03:06:53 +0000
committereadler <eadler@FreeBSD.org>2012-10-22 03:06:53 +0000
commit9715a49f5d890f314d26802d7cfdf6aa0d2ab2d9 (patch)
treef501b07213e52657f19b53f5cfdf9fa6404caae8 /games
parent4110ecce3a2b2196e82165e92267b2eff3f481c8 (diff)
downloadFreeBSD-src-9715a49f5d890f314d26802d7cfdf6aa0d2ab2d9.zip
FreeBSD-src-9715a49f5d890f314d26802d7cfdf6aa0d2ab2d9.tar.gz
bcd isn't installed setuid.
caesar isn't installed setuid. For the archaeologists: it seems this call originally came from NetBSD PR 5970 and 5945 PR: 172566 Submitted by: Erik Cederstrand <erik@cederstrand.dk> Approved by: cperciva MFC after: 3 days
Diffstat (limited to 'games')
-rw-r--r--games/bcd/bcd.c3
-rw-r--r--games/caesar/caesar.c3
2 files changed, 0 insertions, 6 deletions
diff --git a/games/bcd/bcd.c b/games/bcd/bcd.c
index 056d238..04ccccc 100644
--- a/games/bcd/bcd.c
+++ b/games/bcd/bcd.c
@@ -129,9 +129,6 @@ main(int argc, char **argv)
{
char cardline[80];
- /* revoke setgid privileges */
- setgid(getgid());
-
/*
* The original bcd prompts with a "%" when reading from stdin,
* but this seems kind of silly. So this one doesn't.
diff --git a/games/caesar/caesar.c b/games/caesar/caesar.c
index 2415ca7..b1f9920 100644
--- a/games/caesar/caesar.c
+++ b/games/caesar/caesar.c
@@ -82,9 +82,6 @@ main(int argc, char **argv)
char *inbuf;
int obs[26], try, winner;
- /* revoke setgid privileges */
- setgid(getgid());
-
if (argc > 1)
printit(argv[1]);
OpenPOWER on IntegriCloud