summaryrefslogtreecommitdiffhomepage
path: root/pkg/p9/local_server
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/p9/local_server')
-rw-r--r--pkg/p9/local_server/BUILD4
-rw-r--r--pkg/p9/local_server/local_server.go5
2 files changed, 7 insertions, 2 deletions
diff --git a/pkg/p9/local_server/BUILD b/pkg/p9/local_server/BUILD
index 8229e6308..b17ebb79d 100644
--- a/pkg/p9/local_server/BUILD
+++ b/pkg/p9/local_server/BUILD
@@ -1,7 +1,7 @@
-package(licenses = ["notice"]) # Apache 2.0
-
load("@io_bazel_rules_go//go:def.bzl", "go_binary")
+package(licenses = ["notice"]) # Apache 2.0
+
go_binary(
name = "local_server",
srcs = ["local_server.go"],
diff --git a/pkg/p9/local_server/local_server.go b/pkg/p9/local_server/local_server.go
index 1e6aaa762..69b90c6cd 100644
--- a/pkg/p9/local_server/local_server.go
+++ b/pkg/p9/local_server/local_server.go
@@ -318,6 +318,11 @@ func (l *local) Connect(p9.ConnectFlags) (*fd.FD, error) {
return nil, syscall.ECONNREFUSED
}
+// Renamed implements p9.File.Renamed.
+func (l *local) Renamed(parent p9.File, newName string) {
+ l.path = path.Join(parent.(*local).path, newName)
+}
+
func main() {
log.SetLevel(log.Debug)