summaryrefslogtreecommitdiffstats
path: root/cribbage/crib.c
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 /cribbage/crib.c
parentf2aaefda6c88e48aabc5544f251334e4256e7823 (diff)
downloadbsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.tar.gz
bsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.tar.zst
bsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.zip
Use setgid(), not setregid().
Diffstat (limited to 'cribbage/crib.c')
-rw-r--r--cribbage/crib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cribbage/crib.c b/cribbage/crib.c
index 7cf7647a..33a9b4a3 100644
--- a/cribbage/crib.c
+++ b/cribbage/crib.c
@@ -1,4 +1,4 @@
-/* $NetBSD: crib.c,v 1.12 1999/09/12 09:02:21 jsm Exp $ */
+/* $NetBSD: crib.c,v 1.13 2000/05/08 07:56:03 mycroft Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
#if 0
static char sccsid[] = "@(#)crib.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: crib.c,v 1.12 1999/09/12 09:02:21 jsm Exp $");
+__RCSID("$NetBSD: crib.c,v 1.13 2000/05/08 07:56:03 mycroft Exp $");
#endif
#endif /* not lint */
@@ -80,7 +80,7 @@ main(argc, argv)
exit(1);
/* Revoke setgid privileges */
- setregid(getgid(), getgid());
+ setgid(getgid());
/* Set close-on-exec flag on log file */
if (f != NULL) {