From 88eff08098072c4b923af3a7180b14d6dfcf66ef Mon Sep 17 00:00:00 2001 From: mycroft Date: Mon, 8 May 2000 07:55:59 +0000 Subject: Use setgid(), not setregid(). --- canfield/canfield/canfield.c | 6 +++--- canfield/cfscores/cfscores.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'canfield') 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"); -- cgit v1.2.3-56-ge451