From d1ea2c6674fb265a704a86155209ccae0ebba312 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Mon, 22 Oct 2012 03:06:53 +0000 Subject: [PATCH] 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 Approved by: cperciva MFC after: 3 days --- 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 056d2388deb..04ccccc84d5 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 2415ca7f35d..b1f9920e6a5 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]);