From 2547597bf4a6b341a70a8014aa30e0fa4e24391e Mon Sep 17 00:00:00 2001 From: David Greenman Date: Wed, 29 Mar 1995 11:54:02 +0000 Subject: [PATCH] Added a set of braces to make the compiler happy. --- sys/kern/vfs_extattr.c | 5 +++-- sys/kern/vfs_syscalls.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index 60aef32c5d9..7fe74c3b1e8 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94 - * $Id: vfs_syscalls.c,v 1.19 1995/03/16 18:12:50 bde Exp $ + * $Id: vfs_syscalls.c,v 1.20 1995/03/19 11:16:58 davidg Exp $ */ #include @@ -1848,8 +1848,9 @@ rename(p, uap, retval) out: if (!error) { LEASE_CHECK(tdvp, p, p->p_ucred, LEASE_WRITE); - if (fromnd.ni_dvp != tdvp) + if (fromnd.ni_dvp != tdvp) { LEASE_CHECK(fromnd.ni_dvp, p, p->p_ucred, LEASE_WRITE); + } if (tvp) { LEASE_CHECK(tvp, p, p->p_ucred, LEASE_WRITE); (void) vnode_pager_uncache(tvp); diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 60aef32c5d9..7fe74c3b1e8 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94 - * $Id: vfs_syscalls.c,v 1.19 1995/03/16 18:12:50 bde Exp $ + * $Id: vfs_syscalls.c,v 1.20 1995/03/19 11:16:58 davidg Exp $ */ #include @@ -1848,8 +1848,9 @@ rename(p, uap, retval) out: if (!error) { LEASE_CHECK(tdvp, p, p->p_ucred, LEASE_WRITE); - if (fromnd.ni_dvp != tdvp) + if (fromnd.ni_dvp != tdvp) { LEASE_CHECK(fromnd.ni_dvp, p, p->p_ucred, LEASE_WRITE); + } if (tvp) { LEASE_CHECK(tvp, p, p->p_ucred, LEASE_WRITE); (void) vnode_pager_uncache(tvp);