summaryrefslogtreecommitdiff
path: root/internal/nametransform/badname.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/nametransform/badname.go')
-rw-r--r--internal/nametransform/badname.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/nametransform/badname.go b/internal/nametransform/badname.go
index eed0061..6e77561 100644
--- a/internal/nametransform/badname.go
+++ b/internal/nametransform/badname.go
@@ -48,7 +48,7 @@ func (be *NameTransform) EncryptAndHashBadName(name string, iv []byte, dirfd int
//expand suffix on error
continue
}
- if be.longNames && len(cName) > NameMax {
+ if len(cName) > be.longNameMax {
cNamePart = be.HashLongName(cName)
}
cNameBadReverse := cNamePart + name[charpos:len(name)-len(BadnameSuffix)]