svn commit: r242047 - in stable/9/games: bcd caesar

Eitan Adler eadler at FreeBSD.org
Thu Oct 25 03:20:01 UTC 2012


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]);
 


More information about the svn-src-stable-9 mailing list