From 88eff08098072c4b923af3a7180b14d6dfcf66ef Mon Sep 17 00:00:00 2001 From: mycroft Date: Mon, 8 May 2000 07:55:59 +0000 Subject: Use setgid(), not setregid(). --- arithmetic/arithmetic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'arithmetic') diff --git a/arithmetic/arithmetic.c b/arithmetic/arithmetic.c index a15ead5a..c3ac455f 100644 --- a/arithmetic/arithmetic.c +++ b/arithmetic/arithmetic.c @@ -1,4 +1,4 @@ -/* $NetBSD: arithmetic.c,v 1.14 2000/04/14 05:58:01 simonb Exp $ */ +/* $NetBSD: arithmetic.c,v 1.15 2000/05/08 07:56:00 mycroft Exp $ */ /* * Copyright (c) 1989, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: arithmetic.c,v 1.14 2000/04/14 05:58:01 simonb Exp $"); +__RCSID("$NetBSD: arithmetic.c,v 1.15 2000/05/08 07:56:00 mycroft Exp $"); #endif #endif /* not lint */ @@ -121,7 +121,7 @@ main(argc, argv) int ch, cnt; /* Revoke setgid privileges */ - setregid(getgid(), getgid()); + setgid(getgid()); while ((ch = getopt(argc, argv, "r:o:")) != -1) switch(ch) { -- cgit v1.2.3-56-ge451