diff options
| -rw-r--r-- | usr.sbin/eeprom/Makefile | 5 | ||||
| -rw-r--r-- | usr.sbin/eeprom/main.c | 8 | 
2 files changed, 2 insertions, 11 deletions
| diff --git a/usr.sbin/eeprom/Makefile b/usr.sbin/eeprom/Makefile index fa38c761e2b..01accd750f8 100644 --- a/usr.sbin/eeprom/Makefile +++ b/usr.sbin/eeprom/Makefile @@ -1,11 +1,8 @@ -#	$OpenBSD: Makefile,v 1.12 2007/11/14 20:38:32 kettenis Exp $ +#	$OpenBSD: Makefile,v 1.13 2015/03/11 18:12:27 deraadt Exp $  .if ${MACHINE} == "macppc" || ${MACHINE} == "sparc" || ${MACHINE} == "sparc64"  PROG=	eeprom -BINGRP=	kmem -BINMODE=2555 -  SRCS=	getdate.c main.c  SRCS+=	ophandlers.c optree.c diff --git a/usr.sbin/eeprom/main.c b/usr.sbin/eeprom/main.c index a73acb1c6d0..79aadc7e3b3 100644 --- a/usr.sbin/eeprom/main.c +++ b/usr.sbin/eeprom/main.c @@ -1,4 +1,4 @@ -/*	$OpenBSD: main.c,v 1.21 2015/01/19 18:01:11 miod Exp $	*/ +/*	$OpenBSD: main.c,v 1.22 2015/03/11 18:12:27 deraadt Exp $	*/  /*	$NetBSD: main.c,v 1.3 1996/05/16 16:00:55 thorpej Exp $	*/  /*- @@ -111,7 +111,6 @@ main(int argc, char *argv[])  {  	int ch, do_stdin = 0;  	char *cp, line[BUFSIZE]; -	gid_t gid;  	char *optstring = "cf:ipvN:-";  	while ((ch = getopt(argc, argv, optstring)) != -1) @@ -154,11 +153,6 @@ main(int argc, char *argv[])  	argv += optind;  #if defined(__sparc__) && !defined(__sparc64__) -	if (nlistf != NULL) { -		gid = getgid(); -		if (setresgid(gid, gid, gid) == -1) -			err(1, "setresgid"); -	}  	if (getcputype() != CPU_SUN4)  #endif /* __sparc__ && !__sparc64__ */  		use_openprom = 1; | 
