Default permission bits are 0666

This commit is contained in:
Jakob Borg
2014-05-24 08:53:54 +02:00
parent 17e3d14272
commit 1a231d39a5
2 changed files with 6 additions and 5 deletions

View File

@@ -250,7 +250,7 @@ func (w *Walker) walkAndHashFiles(res *[]File, ign map[string][]string) filepath
var flags = uint32(info.Mode() & os.ModePerm)
if w.IgnorePerms {
flags = protocol.FlagNoPermBits
flags = protocol.FlagNoPermBits | 0666
}
f := File{
Name: rn,