summaryrefslogtreecommitdiffstats
path: root/canfield
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 /canfield
parentf2aaefda6c88e48aabc5544f251334e4256e7823 (diff)
downloadbsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.tar.gz
bsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.tar.zst
bsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.zip
Use setgid(), not setregid().
Diffstat (limited to 'canfield')
-rw-r--r--canfield/canfield/canfield.c6
-rw-r--r--canfield/cfscores/cfscores.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/canfield/canfield/canfield.c b/canfield/canfield/canfield.c
index 2626870f..c912c454 100644
--- a/canfield/canfield/canfield.c
+++ b/canfield/canfield/canfield.c
@@ -1,4 +1,4 @@
-/* $NetBSD: canfield.c,v 1.16 2000/04/27 00:30:52 jdc Exp $ */
+/* $NetBSD: canfield.c,v 1.17 2000/05/08 07:56:02 mycroft Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
#if 0
static char sccsid[] = "@(#)canfield.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: canfield.c,v 1.16 2000/04/27 00:30:52 jdc Exp $");
+__RCSID("$NetBSD: canfield.c,v 1.17 2000/05/08 07:56:02 mycroft Exp $");
#endif
#endif /* not lint */
@@ -1686,7 +1686,7 @@ initall()
dbfd = open(_PATH_SCORE, O_RDWR);
/* Revoke setgid privileges */
- setregid(getgid(), getgid());
+ setgid(getgid());
if (dbfd < 0)
return;
diff --git a/canfield/cfscores/cfscores.c b/canfield/cfscores/cfscores.c
index b4a291b5..4a9a73d7 100644
--- a/canfield/cfscores/cfscores.c
+++ b/canfield/cfscores/cfscores.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cfscores.c,v 1.8 1999/09/12 09:02:20 jsm Exp $ */
+/* $NetBSD: cfscores.c,v 1.9 2000/05/08 07:56:03 mycroft Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
#if 0
static char sccsid[] = "@(#)cfscores.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: cfscores.c,v 1.8 1999/09/12 09:02:20 jsm Exp $");
+__RCSID("$NetBSD: cfscores.c,v 1.9 2000/05/08 07:56:03 mycroft Exp $");
#endif
#endif /* not lint */
@@ -80,7 +80,7 @@ main(argc, argv)
int uid;
/* Revoke setgid privileges */
- setregid(getgid(), getgid());
+ setgid(getgid());
if (argc > 2) {
printf("Usage: cfscores [user]\n");