Send default permissions 0777 on directories when IgnorePerms set (ref #284)

This commit is contained in:
Jakob Borg 2014-05-26 11:09:35 +02:00
parent cfd1fdb38e
commit 8e0520887a

View File

@ -167,7 +167,7 @@ func (w *Walker) walkAndHashFiles(res *[]File, ign map[string][]string) filepath
} else {
var flags uint32 = protocol.FlagDirectory
if w.IgnorePerms {
flags |= protocol.FlagNoPermBits
flags |= protocol.FlagNoPermBits | 0777
} else {
flags |= uint32(info.Mode() & os.ModePerm)
}