From 72142c715d8e044f6e126234bb031eb51167fe9b Mon Sep 17 00:00:00 2001 From: pefo Date: Thu, 12 Sep 1996 14:43:30 +0000 Subject: [PATCH] remove excess tests... --- sys/kern/exec_elf.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c index 6f768c4a779..a68c890236e 100644 --- a/sys/kern/exec_elf.c +++ b/sys/kern/exec_elf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf.c,v 1.15 1996/09/05 17:31:06 pefo Exp $ */ +/* $OpenBSD: exec_elf.c,v 1.16 1996/09/12 14:43:30 pefo Exp $ */ /* * Copyright (c) 1996 Per Fogelstrom @@ -320,15 +320,6 @@ elf_load_file(p, path, epp, ap, last) error = EACCES; goto bad; } - if ((error = VOP_ACCESS(vp, VEXEC, p->p_ucred, p)) != 0) - goto bad; - if ((epp->ep_vap->va_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) == 0) { - error = EACCES; - goto bad; - } - if ((error = VOP_OPEN(vp, FREAD, p->p_ucred, p)) != 0) - goto bad; - if ((error = elf_read_from(p, nd.ni_vp, 0, (caddr_t) &eh, sizeof(eh))) != 0) goto bad1; -- 2.20.1