From 82ba9ffe06f276fb765b55404829357b5f99e560 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 16 Aug 2023 16:38:04 +1000 Subject: [PATCH] fs: Return file permissions for root node FUSE-T doesn't imply them like other backends. --- fs/torrentfs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/torrentfs.go b/fs/torrentfs.go index 448e5435..5e0b75ea 100644 --- a/fs/torrentfs.go +++ b/fs/torrentfs.go @@ -182,7 +182,7 @@ func (rn rootNode) ReadDirAll(ctx context.Context) (dirents []fuse.Dirent, err e } func (rn rootNode) Attr(ctx context.Context, attr *fuse.Attr) error { - attr.Mode = os.ModeDir + attr.Mode = os.ModeDir | defaultMode return nil } -- 2.44.0