diff options
author | eivind <eivind@FreeBSD.org> | 1999-11-13 20:58:17 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1999-11-13 20:58:17 +0000 |
commit | 4ce73d70968875fa0c07f07e90a2bdcb84726bd6 (patch) | |
tree | 1a5eba3223a453fbc8060d31521181433ce7f3f3 /sys/ufs | |
parent | 91b25fa7a9d94c9097d6ebf1d8ec6b1a332f8e04 (diff) | |
download | FreeBSD-src-4ce73d70968875fa0c07f07e90a2bdcb84726bd6.zip FreeBSD-src-4ce73d70968875fa0c07f07e90a2bdcb84726bd6.tar.gz |
Remove WILLRELE from VOP_SYMLINK
Note: Previous commit to these files (except coda_vnops and devfs_vnops)
that claimed to remove WILLRELE from VOP_RENAME actually removed it from
VOP_MKNOD.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_vnops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 6e394c1..437b4f5 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -1587,7 +1587,8 @@ ufs_symlink(ap) error = vn_rdwr(UIO_WRITE, vp, ap->a_target, len, (off_t)0, UIO_SYSSPACE, IO_NODELOCKED, ap->a_cnp->cn_cred, (int *)0, (struct proc *)0); - vput(vp); + if (error) + vput(vp); return (error); } |