aboutsummaryrefslogtreecommitdiff
path: root/internal/nametransform/longnames.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-03-05 22:59:25 +0100
committerJakob Unterwurzacher2017-03-05 22:59:25 +0100
commit445b5019e3f5a74409ca66c166cc1c3ccdd3dce7 (patch)
tree7cae90c96d8113dee657e50aa1f514138b99fa14 /internal/nametransform/longnames.go
parent5b54577d2ec553055c06e05841f626c10368c6b6 (diff)
nametransform: fix Raw64 not affecting symlink targets
The symlink functions incorrectly hardcoded the padded base64 variant.
Diffstat (limited to 'internal/nametransform/longnames.go')
-rw-r--r--internal/nametransform/longnames.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/nametransform/longnames.go b/internal/nametransform/longnames.go
index f9ba848..54095a4 100644
--- a/internal/nametransform/longnames.go
+++ b/internal/nametransform/longnames.go
@@ -25,7 +25,7 @@ const (
// "gocryptfs.longname.[sha256]"
func (n *NameTransform) HashLongName(name string) string {
hashBin := sha256.Sum256([]byte(name))
- hashBase64 := n.b64.EncodeToString(hashBin[:])
+ hashBase64 := n.B64.EncodeToString(hashBin[:])
return longNamePrefix + hashBase64
}