summaryrefslogtreecommitdiffstats
path: root/bcd
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 /bcd
parentf2aaefda6c88e48aabc5544f251334e4256e7823 (diff)
downloadbsdgames-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bcd/bcd.c b/bcd/bcd.c
index 4e0b70bb..8ee03447 100644
--- a/bcd/bcd.c
+++ b/bcd/bcd.c
@@ -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,