summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-22 02:01:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-22 02:01:51 +0000
commit047cffb7df9f9e87e41c05e0788575ea84e763d6 (patch)
tree58c62ae5984489fcad1f3b293b113224c1c46f4d
parent4b69a8de067a4f5e93c441d4beb7755a7630bed3 (diff)
setgid back; from kashmir@umiacs.UMD.EDU
-rw-r--r--usr.sbin/eeprom/main.c4
1 files changed, 3 insertions, 1 deletions
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__ */