diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-06-22 14:14:12 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-06-22 14:14:12 +0000 |
commit | 0feae2b086084ce16940249793f7b5ecabe85c52 (patch) | |
tree | 98fa9664da9fd8be22e369584c568625bc15f799 /sys/kern/exec_script.c | |
parent | a49f87d13c19deac6e87761b349d96038b3acdfc (diff) |
KNF
Diffstat (limited to 'sys/kern/exec_script.c')
-rw-r--r-- | sys/kern/exec_script.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/kern/exec_script.c b/sys/kern/exec_script.c index b920555b6da..1ac12a36ef6 100644 --- a/sys/kern/exec_script.c +++ b/sys/kern/exec_script.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_script.c,v 1.12 2001/05/14 13:31:52 art Exp $ */ +/* $OpenBSD: exec_script.c,v 1.13 2001/06/22 14:14:08 deraadt Exp $ */ /* $NetBSD: exec_script.c,v 1.13 1996/02/04 02:15:06 christos Exp $ */ /* @@ -270,13 +270,13 @@ fail: epp->ep_flags |= EXEC_DESTR; /* kill the opened file descriptor, else close the file */ - if (epp->ep_flags & EXEC_HASFD) { - epp->ep_flags &= ~EXEC_HASFD; - (void) fdrelease(p, epp->ep_fd); - } else + if (epp->ep_flags & EXEC_HASFD) { + epp->ep_flags &= ~EXEC_HASFD; + (void) fdrelease(p, epp->ep_fd); + } else vn_close(scriptvp, FREAD, p->p_ucred, p); - FREE(epp->ep_ndp->ni_cnd.cn_pnbuf, M_NAMEI); + FREE(epp->ep_ndp->ni_cnd.cn_pnbuf, M_NAMEI); /* free the fake arg list, because we're not returning it */ tmpsap = shellargp; @@ -286,11 +286,11 @@ fail: } FREE(shellargp, M_EXEC); - /* - * free any vmspace-creation commands, - * and release their references - */ - kill_vmcmds(&epp->ep_vmcmds); + /* + * free any vmspace-creation commands, + * and release their references + */ + kill_vmcmds(&epp->ep_vmcmds); - return error; + return error; } |