From 0a8079d478d00832c116d703adca587deffb440e Mon Sep 17 00:00:00 2001 From: ruiwen-zhao Date: Fri, 21 Apr 2023 17:07:00 +0000 Subject: [PATCH] Add support for Sticky bit Signed-off-by: ruiwen-zhao --- fuse.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fuse.go b/fuse.go index d75294a1..6de79ddf 100644 --- a/fuse.go +++ b/fuse.go @@ -1599,6 +1599,9 @@ func (a *Attr) attr(out *attr, proto Protocol) { if a.Mode&os.ModeSetgid != 0 { out.Mode |= syscall.S_ISGID } + if a.Mode&os.ModeSticky != 0 { + out.Mode |= syscall.S_ISVTX + } out.Nlink = a.Nlink out.Uid = a.Uid out.Gid = a.Gid