From: Matt Joiner Date: Wed, 16 Aug 2023 06:38:04 +0000 (+1000) Subject: fs: Return file permissions for root node X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=82ba9ffe06f276fb765b55404829357b5f99e560;hp=5dd20ff99b0d7a4836003adc91c84e5645fa4d99;p=btrtrc.git fs: Return file permissions for root node FUSE-T doesn't imply them like other backends. --- 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 }