From aa824ebe37cf24a1e6d890e784438a566e7dff17 Mon Sep 17 00:00:00 2001 From: eadler Date: Thu, 25 Oct 2012 03:20:00 +0000 Subject: [PATCH] MFC r241846: 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 Approved by: cperciva (implicit) git-svn-id: svn://svn.freebsd.org/base/stable/8@242046 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- games/bcd/bcd.c | 3 --- games/caesar/caesar.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/games/bcd/bcd.c b/games/bcd/bcd.c index 27f483ec6..d1d142d38 100644 --- a/games/bcd/bcd.c +++ b/games/bcd/bcd.c @@ -133,9 +133,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 25c0a123b..6f67b7db4 100644 --- a/games/caesar/caesar.c +++ b/games/caesar/caesar.c @@ -86,9 +86,6 @@ main(int argc, char **argv) char *inbuf; int obs[26], try, winner; - /* revoke setgid privileges */ - setgid(getgid()); - if (argc > 1) printit(argv[1]); -- 2.45.0