Date: Thu, 25 Oct 2012 03:20:00 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r242047 - in stable/9/games: bcd caesar Message-ID: <201210250320.q9P3K0ID059957@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Thu Oct 25 03:20:00 2012 New Revision: 242047 URL: http://svn.freebsd.org/changeset/base/242047 Log: 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) Modified: stable/9/games/bcd/bcd.c stable/9/games/caesar/caesar.c Directory Properties: stable/9/games/bcd/ (props changed) stable/9/games/caesar/ (props changed) Modified: stable/9/games/bcd/bcd.c ============================================================================== --- stable/9/games/bcd/bcd.c Thu Oct 25 03:20:00 2012 (r242046) +++ stable/9/games/bcd/bcd.c Thu Oct 25 03:20:00 2012 (r242047) @@ -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. Modified: stable/9/games/caesar/caesar.c ============================================================================== --- stable/9/games/caesar/caesar.c Thu Oct 25 03:20:00 2012 (r242046) +++ stable/9/games/caesar/caesar.c Thu Oct 25 03:20:00 2012 (r242047) @@ -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]);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210250320.q9P3K0ID059957>