From 2840f7c1b12c88f47f7c3c8df659ca436f5901b6 Mon Sep 17 00:00:00 2001 From: Jamie Liu Date: Tue, 19 Feb 2019 15:52:47 -0800 Subject: [PATCH] Add p9.Sticky. PiperOrigin-RevId: 234691125 Change-Id: I2a588153ded5a4fbed07bc2f0937a43ccfba791b --- pkg/p9/p9.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 )