From 23b55f68b7bf746675e8feedac06274b72e51017 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 19 May 2014 16:24:39 +0200 Subject: [PATCH] Also sync changes to only permission bits (fixes #237) --- scanner/walk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanner/walk.go b/scanner/walk.go index be2241da1..b4db3b4be 100644 --- a/scanner/walk.go +++ b/scanner/walk.go @@ -185,7 +185,7 @@ func (w *Walker) walkAndHashFiles(res *[]File, ign map[string][]string) filepath if info.Mode().IsRegular() { if w.CurrentFiler != nil { cf := w.CurrentFiler.CurrentFile(rn) - if cf.Flags&protocol.FlagDeleted == 0 && cf.Modified == info.ModTime().Unix() { + if cf.Flags&protocol.FlagDeleted == 0 && cf.Modified == info.ModTime().Unix() && cf.Flags == uint32(info.Mode()&os.ModePerm) { if debug { l.Debugln("unchanged:", cf) }