1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-30 08:19:09 +00:00

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 <erik@cederstrand.dk>
Approved by:	cperciva
MFC after:	3 days
This commit is contained in:
Eitan Adler 2012-10-22 03:06:53 +00:00
parent 5becbbf49c
commit d1ea2c6674
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241846
2 changed files with 0 additions and 6 deletions

View File

@ -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.

View File

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