From e825df64489db2ddb8951fd40ca6766eb66210ce Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 5 Nov 2016 18:17:21 +0000 Subject: [PATCH] Fix Check on crypted file systems --- fs/operations.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/operations.go b/fs/operations.go index 1c7a0d156..1b94cd558 100644 --- a/fs/operations.go +++ b/fs/operations.go @@ -474,7 +474,7 @@ func Overlapping(fdst, fsrc Fs) bool { // // it returns true if differences were found // it also returns whether it couldn't be hashed -func checkIdentical(dst, src Object) (bool, bool) { +func checkIdentical(dst, src Object) (differ bool, noHash bool) { Stats.Checking(src.Remote()) defer Stats.DoneChecking(src.Remote()) if src.Size() != dst.Size() { @@ -489,7 +489,7 @@ func checkIdentical(dst, src Object) (bool, bool) { return true, false } if hash == HashNone { - return true, true + return false, true } if !same { Stats.Error()