diff options
author | Fabricio Voznika <fvoznika@google.com> | 2019-01-31 11:29:55 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-01-31 11:30:56 -0800 |
commit | f1c1ee8a8ea6c0035aa799af3d7f5733fa2275d0 (patch) | |
tree | 5165562388c09d2c9826cb4a746e43dfaa47f71b /pkg/p9/buffer.go | |
parent | 2a0c69b19f4b55c3f9777f0098a72af123ccff3c (diff) |
Don't mask out sticky bit to/from gofer
RELNOTES: sticky bit propagates to gofers now.
PiperOrigin-RevId: 231822453
Change-Id: I73426170b9457350480a3b144a2baf937e7cb477
Diffstat (limited to 'pkg/p9/buffer.go')
-rw-r--r-- | pkg/p9/buffer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/p9/buffer.go b/pkg/p9/buffer.go index 9575ddf12..b7bb14ef9 100644 --- a/pkg/p9/buffer.go +++ b/pkg/p9/buffer.go @@ -144,7 +144,7 @@ func (b *buffer) ReadGID() GID { // ReadPermissions reads a file mode value and applies the mask for permissions. func (b *buffer) ReadPermissions() FileMode { - return b.ReadFileMode() & PermissionsMask + return b.ReadFileMode() & permissionsMask } // ReadFileMode reads a file mode value. @@ -230,7 +230,7 @@ func (b *buffer) WriteGID(gid GID) { // WritePermissions applies a permissions mask and writes the FileMode. func (b *buffer) WritePermissions(perm FileMode) { - b.WriteFileMode(perm & PermissionsMask) + b.WriteFileMode(perm & permissionsMask) } // WriteFileMode writes a FileMode. |