summaryrefslogtreecommitdiffhomepage
path: root/pkg/p9
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/p9')
-rw-r--r--pkg/p9/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/p9/server.go b/pkg/p9/server.go
index c3ab7dad1..bdeb495c2 100644
--- a/pkg/p9/server.go
+++ b/pkg/p9/server.go
@@ -264,7 +264,7 @@ func (f *fidRef) renameChildTo(oldName string, target *fidRef, newName string) {
})
// Replace the previous (now deleted) path node.
- f.pathNode.children.Store(newName, origPathNode)
+ target.pathNode.children.Store(newName, origPathNode)
// Call Renamed on everything above.
notifyNameChange(origPathNode)