summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2019-02-19 15:52:47 -0800
committerShentubot <shentubot@google.com>2019-02-19 15:53:46 -0800
commit2840f7c1b12c88f47f7c3c8df659ca436f5901b6 (patch)
tree7a5c55d6365b17c6bf78adb6299d844113c6175f
parentbed6f8534b1bedaad031682fe052b5a46d9cb3ee (diff)
Add p9.Sticky.
PiperOrigin-RevId: 234691125 Change-Id: I2a588153ded5a4fbed07bc2f0937a43ccfba791b
-rw-r--r--pkg/p9/p9.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/p9/p9.go b/pkg/p9/p9.go
index 2737fe7ed..4ea9f2f9a 100644
--- a/pkg/p9/p9.go
+++ b/pkg/p9/p9.go
@@ -139,8 +139,11 @@ const (
// AllPermissions is a mask with rwx bits set for user, group and others.
AllPermissions FileMode = 0777
+ // Sticky is a mode bit indicating sticky directories.
+ Sticky FileMode = 01000
+
// permissionsMask is the mask to apply to FileModes for permissions. It
- // includes rwx bits for user, group and others, and sticky bit (01000).
+ // includes rwx bits for user, group and others, and sticky bit.
permissionsMask FileMode = 01777
)