summaryrefslogtreecommitdiffhomepage
path: root/pkg/p9/server.go
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2018-09-07 16:52:02 -0700
committerShentubot <shentubot@google.com>2018-09-07 16:53:12 -0700
commit6cfb5cd56d4660cc0de6cd991a7ed4601824a7e6 (patch)
tree9c197fdc7083acebc1b89eeed3bfd458bd8ab6d2 /pkg/p9/server.go
parent8ce3fbf9f87677ac34c577be9fb9b395ede8e714 (diff)
Add additional sanity checks for walk.
PiperOrigin-RevId: 212058684 Change-Id: I319709b9ffcfccb3231bac98df345d2a20eca24b
Diffstat (limited to 'pkg/p9/server.go')
-rw-r--r--pkg/p9/server.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/p9/server.go b/pkg/p9/server.go
index 2965ae16e..28a273ac6 100644
--- a/pkg/p9/server.go
+++ b/pkg/p9/server.go
@@ -97,6 +97,9 @@ type fidRef struct {
// This is updated in handlers.go.
opened bool
+ // walkable indicates this fidRef may be walked.
+ walkable bool
+
// openFlags is the mode used in the open.
//
// This is updated in handlers.go.