summaryrefslogtreecommitdiffstats
path: root/mille
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 /mille
parentf2aaefda6c88e48aabc5544f251334e4256e7823 (diff)
downloadbsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.tar.gz
bsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.tar.zst
bsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.zip
Use setgid(), not setregid().
Diffstat (limited to 'mille')
-rw-r--r--mille/mille.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mille/mille.c b/mille/mille.c
index a41cd832..1c6869f5 100644
--- a/mille/mille.c
+++ b/mille/mille.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mille.c,v 1.9 1999/09/12 09:02:21 jsm Exp $ */
+/* $NetBSD: mille.c,v 1.10 2000/05/08 07:56:04 mycroft Exp $ */
/*
* Copyright (c) 1982, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1982, 1993\n\
#if 0
static char sccsid[] = "@(#)mille.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: mille.c,v 1.9 1999/09/12 09:02:21 jsm Exp $");
+__RCSID("$NetBSD: mille.c,v 1.10 2000/05/08 07:56:04 mycroft Exp $");
#endif
#endif /* not lint */
@@ -62,7 +62,7 @@ main(ac, av)
bool restore;
/* Revoke setgid privileges */
- setregid(getgid(), getgid());
+ setgid(getgid());
if (strcmp(av[0], "a.out") == 0) {
outf = fopen("q", "w");