Don't print plain text directory name in "Invalid name" warning

This commit is contained in:
Jakob Unterwurzacher 2016-01-31 18:30:39 +01:00
parent 6454db68d9
commit 1573efec98
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ func (fs *FS) OpenDir(dirName string, context *fuse.Context) ([]fuse.DirEntry, f
if !fs.args.PlaintextNames {
name, err = fs.CryptFS.DecryptName(cName, cachedIV, fs.args.EMENames)
if err != nil {
cryptfs.Warn.Printf("Invalid name \"%s\" in dir \"%s\": %s", cName, dirName, err)
cryptfs.Warn.Printf("Invalid name \"%s\" in dir \"%s\": %s", cName, cDirName, err)
continue
}
}