summaryrefslogtreecommitdiffstats
path: root/robots
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 /robots
parentf2aaefda6c88e48aabc5544f251334e4256e7823 (diff)
downloadbsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.tar.gz
bsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.tar.zst
bsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.zip
Use setgid(), not setregid().
Diffstat (limited to 'robots')
-rw-r--r--robots/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/robots/main.c b/robots/main.c
index b5850402..468b682e 100644
--- a/robots/main.c
+++ b/robots/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.15 2000/01/19 19:43:42 jsm Exp $ */
+/* $NetBSD: main.c,v 1.16 2000/05/08 07:56:05 mycroft Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: main.c,v 1.15 2000/01/19 19:43:42 jsm Exp $");
+__RCSID("$NetBSD: main.c,v 1.16 2000/05/08 07:56:05 mycroft Exp $");
#endif
#endif /* not lint */
@@ -71,7 +71,7 @@ main(ac, av)
exit(1);
/* Revoke setgid privileges */
- setregid(getgid(), getgid());
+ setgid(getgid());
show_only = FALSE;
Num_games = 1;