diff options
author | helg <helg@cvs.openbsd.org> | 2017-11-27 12:54:14 +0000 |
---|---|---|
committer | helg <helg@cvs.openbsd.org> | 2017-11-27 12:54:14 +0000 |
commit | 68217ffb4d8ea54654a84b6eca9b643a915edce7 (patch) | |
tree | 768878f0cb996e2c98ecc3ab66817b19c7032fdf | |
parent | da454410fba13ee12c6d7342f6d9c91038508a26 (diff) |
When renaming a file, unlock the target vnode if the target file exists.
ok mpi@
-rw-r--r-- | sys/miscfs/fuse/fuse_vnops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/miscfs/fuse/fuse_vnops.c b/sys/miscfs/fuse/fuse_vnops.c index ebb8d64e074..bf3f86ee184 100644 --- a/sys/miscfs/fuse/fuse_vnops.c +++ b/sys/miscfs/fuse/fuse_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fuse_vnops.c,v 1.34 2017/11/17 15:45:17 helg Exp $ */ +/* $OpenBSD: fuse_vnops.c,v 1.35 2017/11/27 12:54:13 helg Exp $ */ /* * Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com> * @@ -1261,6 +1261,8 @@ abortit: vrele(tdvp); else vput(tdvp); + if (tvp) + vput(tvp); vrele(fdvp); vrele(fvp); |