From 047cffb7df9f9e87e41c05e0788575ea84e763d6 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 22 Jul 1996 02:01:51 +0000 Subject: setgid back; from kashmir@umiacs.UMD.EDU --- usr.sbin/eeprom/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.sbin') diff --git a/usr.sbin/eeprom/main.c b/usr.sbin/eeprom/main.c index 5d19056b110..b5d06d5baff 100644 --- a/usr.sbin/eeprom/main.c +++ b/usr.sbin/eeprom/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.3 1996/05/24 09:20:44 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.4 1996/07/22 02:01:50 deraadt Exp $ */ /* $NetBSD: main.c,v 1.3 1996/05/16 16:00:55 thorpej Exp $ */ /*- @@ -161,6 +161,8 @@ main(argc, argv) argv += optind; #ifdef __sparc__ + if (system != NULL) + setgid(getgid()); if (getcputype() != CPU_SUN4) use_openprom = 1; #endif /* __sparc__ */ -- cgit v1.2.3