Back out last due to think o on my side: we don't start banner through

dm(6), so there's no setgid privileges to discard. Pointed out by
Joseph S. Myers <jsm28@cam.ac.uk>
This commit is contained in:
hubertf 1999-07-19 19:07:17 +00:00
parent 4eb46531af
commit 146de2e635
1 changed files with 2 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: banner.c,v 1.9 1999/07/19 00:42:59 hubertf Exp $ */
/* $NetBSD: banner.c,v 1.10 1999/07/19 19:07:17 hubertf Exp $ */
/*
* Copyright (c) 1980, 1993, 1994
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993, 1994\n\
#if 0
static char sccsid[] = "@(#)banner.c 8.4 (Berkeley) 4/29/95";
#else
__RCSID("$NetBSD: banner.c,v 1.9 1999/07/19 00:42:59 hubertf Exp $");
__RCSID("$NetBSD: banner.c,v 1.10 1999/07/19 19:07:17 hubertf Exp $");
#endif
#endif /* not lint */
@ -1039,9 +1039,6 @@ main(argc, argv)
{
int ch;
/* revoke setgid privileges */
setregid(getgid(), getgid());
while ((ch = getopt(argc, argv, "w:td")) != -1)
switch (ch) {
case 'd':