summaryrefslogtreecommitdiffstats
path: root/arithmetic
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>2000-05-08 07:55:59 +0000
committermycroft <mycroft@NetBSD.org>2000-05-08 07:55:59 +0000
commit88eff08098072c4b923af3a7180b14d6dfcf66ef (patch)
tree40d5c0f66d3048d7bda2b215bec0d405f8bdf5aa /arithmetic
parentf2aaefda6c88e48aabc5544f251334e4256e7823 (diff)
downloadbsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.tar.gz
bsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.tar.zst
bsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.zip
Use setgid(), not setregid().
Diffstat (limited to 'arithmetic')
-rw-r--r--arithmetic/arithmetic.c6
1 files changed, 3 insertions, 3 deletions
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) {