Also sync changes to only permission bits (fixes #237)

This commit is contained in:
Jakob Borg 2014-05-19 16:24:39 +02:00
parent 5c65e10875
commit 23b55f68b7

View File

@ -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)
}