diff options
author | hubertf <hubertf@NetBSD.org> | 1999-07-19 19:07:17 +0000 |
---|---|---|
committer | hubertf <hubertf@NetBSD.org> | 1999-07-19 19:07:17 +0000 |
commit | 76808686fda1c6ee705960f64ccee77a9b29e5ee (patch) | |
tree | d4fe00e26070b21c10a463ae58920e4dbe8ffd0f /banner | |
parent | 0bbef9954c9539cab7204b7715f139d3dae6c112 (diff) | |
download | bsdgames-darwin-76808686fda1c6ee705960f64ccee77a9b29e5ee.tar.gz bsdgames-darwin-76808686fda1c6ee705960f64ccee77a9b29e5ee.tar.zst bsdgames-darwin-76808686fda1c6ee705960f64ccee77a9b29e5ee.zip |
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>
Diffstat (limited to 'banner')
-rw-r--r-- | banner/banner.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/banner/banner.c b/banner/banner.c index 9cb3a15b..9497c6f2 100644 --- a/banner/banner.c +++ b/banner/banner.c @@ -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': |