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 /bcd | |
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 'bcd')
-rw-r--r-- | bcd/bcd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $NetBSD: bcd.c,v 1.9 1999/07/28 02:12:33 hubertf Exp $ */ +/* $NetBSD: bcd.c,v 1.10 2000/05/08 07:56:02 mycroft Exp $ */ /* * Copyright (c) 1989, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)bcd.c 8.2 (Berkeley) 3/20/94"; #else -__RCSID("$NetBSD: bcd.c,v 1.9 1999/07/28 02:12:33 hubertf Exp $"); +__RCSID("$NetBSD: bcd.c,v 1.10 2000/05/08 07:56:02 mycroft Exp $"); #endif #endif /* not lint */ @@ -138,7 +138,7 @@ main(argc, argv) char cardline[80]; /* revoke setgid privileges */ - setregid(getgid(), getgid()); + setgid(getgid()); /* * The original bcd prompts with a "%" when reading from stdin, |