Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/banner Back out last due to think o on my side: we don...



details:   https://anonhg.NetBSD.org/src/rev/18da4b2270a4
branches:  trunk
changeset: 474771:18da4b2270a4
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Mon Jul 19 19:07:17 1999 +0000

description:
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@localhost>

diffstat:

 games/banner/banner.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r f2402065bce4 -r 18da4b2270a4 games/banner/banner.c
--- a/games/banner/banner.c     Mon Jul 19 19:02:22 1999 +0000
+++ b/games/banner/banner.c     Mon Jul 19 19:07:17 1999 +0000
@@ -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 @@
 #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 @@
 { 
        int ch;
 
-       /* revoke setgid privileges */
-       setregid(getgid(), getgid());
-
        while ((ch = getopt(argc, argv, "w:td")) != -1)
                switch (ch) {
                case 'd':



Home | Main Index | Thread Index | Old Index