diff options
author | mycroft <mycroft@NetBSD.org> | 2000-05-08 07:55:59 +0000 |
---|---|---|
committer | mycroft <mycroft@NetBSD.org> | 2000-05-08 07:55:59 +0000 |
commit | 88eff08098072c4b923af3a7180b14d6dfcf66ef (patch) | |
tree | 40d5c0f66d3048d7bda2b215bec0d405f8bdf5aa /canfield/canfield | |
parent | f2aaefda6c88e48aabc5544f251334e4256e7823 (diff) | |
download | bsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.tar.gz bsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.tar.zst bsdgames-darwin-88eff08098072c4b923af3a7180b14d6dfcf66ef.zip |
Use setgid(), not setregid().
Diffstat (limited to 'canfield/canfield')
-rw-r--r-- | canfield/canfield/canfield.c | 6 |
1 files changed, 3 insertions, 3 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; |