]> Sergey Matveev's repositories - btrtrc.git/commitdiff
fs: Return file permissions for root node
authorMatt Joiner <anacrolix@gmail.com>
Wed, 16 Aug 2023 06:38:04 +0000 (16:38 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 16 Aug 2023 06:38:04 +0000 (16:38 +1000)
FUSE-T doesn't imply them like other backends.

fs/torrentfs.go

index 448e54355ce703d5e869c6889976295eb8cd1e05..5e0b75ea18e4bd8a944124d9bddb94957148502d 100644 (file)
@@ -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
 }