aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend_reverse/node_dir_ops.go
diff options
context:
space:
mode:
authorNekoGirlSAIKOU2022-04-25 01:35:30 +0800
committerJakob Unterwurzacher2022-08-28 11:09:01 +0200
commit1bff80b46cf3cdd2d6934ebf905fca96dde7af97 (patch)
treef9548101774bf4ed5d3e412d81e34f0fcf07cacc /internal/fusefrontend_reverse/node_dir_ops.go
parentbf29c9f99d90343d608c86b536c36abece158591 (diff)
Fix invalid -longnamemax for reverse mode
Diffstat (limited to 'internal/fusefrontend_reverse/node_dir_ops.go')
-rw-r--r--internal/fusefrontend_reverse/node_dir_ops.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fusefrontend_reverse/node_dir_ops.go b/internal/fusefrontend_reverse/node_dir_ops.go
index 05e2f49..fdd15ce 100644
--- a/internal/fusefrontend_reverse/node_dir_ops.go
+++ b/internal/fusefrontend_reverse/node_dir_ops.go
@@ -73,7 +73,7 @@ func (n *Node) Readdir(ctx context.Context) (stream fs.DirStream, errno syscall.
entries[i].Name = "___GOCRYPTFS_INVALID_NAME___"
continue
}
- if len(cName) > unix.NAME_MAX {
+ if len(cName) > unix.NAME_MAX || len(cName) > rn.nameTransform.GetLongNameMax() {
cName = rn.nameTransform.HashLongName(cName)
dotNameFile := fuse.DirEntry{
Mode: virtualFileMode,