Skip to content

Commit

Permalink
bcd isn't installed setuid.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
grimreaper committed Oct 22, 2012
1 parent 5becbbf commit d1ea2c6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions games/bcd/bcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 0 additions & 3 deletions games/caesar/caesar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit d1ea2c6

Please sign in to comment.