From c2dc4a8e069a2e0add89813c1f18edc56c139b12 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Sat, 28 May 2016 04:18:31 +0000 Subject: [PATCH] lib/db: Have prefix should be normalized GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3206 --- lib/db/set.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db/set.go b/lib/db/set.go index cccb3f8f..d9dd2cb2 100644 --- a/lib/db/set.go +++ b/lib/db/set.go @@ -181,7 +181,7 @@ func (s *FileSet) WithHaveTruncated(device protocol.DeviceID, fn Iterator) { func (s *FileSet) WithPrefixedHaveTruncated(device protocol.DeviceID, prefix string, fn Iterator) { l.Debugf("%s WithPrefixedHaveTruncated(%v)", s.folder, device) - s.db.withHave([]byte(s.folder), device[:], []byte(prefix), true, nativeFileIterator(fn)) + s.db.withHave([]byte(s.folder), device[:], []byte(osutil.NormalizedFilename(prefix)), true, nativeFileIterator(fn)) } func (s *FileSet) WithGlobal(fn Iterator) { l.Debugf("%s WithGlobal()", s.folder)