artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f93313
)
When renaming a file, unlock the target vnode if the target file exists.
author
helg
<helg@openbsd.org>
Mon, 27 Nov 2017 12:54:13 +0000
(12:54 +0000)
committer
helg
<helg@openbsd.org>
Mon, 27 Nov 2017 12:54:13 +0000
(12:54 +0000)
ok mpi@
sys/miscfs/fuse/fuse_vnops.c
patch
|
blob
|
history
diff --git
a/sys/miscfs/fuse/fuse_vnops.c
b/sys/miscfs/fuse/fuse_vnops.c
index
ebb8d64
..
bf3f86e
100644
(file)
--- a/
sys/miscfs/fuse/fuse_vnops.c
+++ b/
sys/miscfs/fuse/fuse_vnops.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: fuse_vnops.c,v 1.3
4 2017/11/17 15:45:17
helg Exp $ */
+/* $OpenBSD: fuse_vnops.c,v 1.3
5 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);