diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 1996-09-12 14:43:31 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 1996-09-12 14:43:31 +0000 |
commit | 1df50ed6b6a7e0949408ddb64aab9d3f49d12969 (patch) | |
tree | 073b995cd3b3f4316701085faa3f6c6444bb033b /sys | |
parent | 10280d86152b6c59fae30e7fadddc2d832162f97 (diff) |
remove excess tests...
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/exec_elf.c | 11 |
1 files changed, 1 insertions, 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; |