nametransform: downgrade invalid length warning
This happens all the time in reverse mode when somebody stats an encrypted symlink target.
This commit is contained in:
parent
5f4b16c00f
commit
28838a489d
@ -35,7 +35,7 @@ func (n *NameTransform) DecryptName(cipherName string, iv []byte) (string, error
|
|||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
if len(bin)%aes.BlockSize != 0 {
|
if len(bin)%aes.BlockSize != 0 {
|
||||||
tlog.Warn.Printf("DecryptName %q: decoded length %d is not a multiple of 16", cipherName, len(bin))
|
tlog.Debug.Printf("DecryptName %q: decoded length %d is not a multiple of 16", cipherName, len(bin))
|
||||||
return "", syscall.EINVAL
|
return "", syscall.EINVAL
|
||||||
}
|
}
|
||||||
bin = eme.Transform(n.cryptoCore.BlockCipher, iv, bin, eme.DirectionDecrypt)
|
bin = eme.Transform(n.cryptoCore.BlockCipher, iv, bin, eme.DirectionDecrypt)
|
||||||
|
Loading…
Reference in New Issue
Block a user