Send default permissions 0777 on directories when IgnorePerms set (ref #284)
This commit is contained in:
+1
-1
@@ -167,7 +167,7 @@ func (w *Walker) walkAndHashFiles(res *[]File, ign map[string][]string) filepath
|
|||||||
} else {
|
} else {
|
||||||
var flags uint32 = protocol.FlagDirectory
|
var flags uint32 = protocol.FlagDirectory
|
||||||
if w.IgnorePerms {
|
if w.IgnorePerms {
|
||||||
flags |= protocol.FlagNoPermBits
|
flags |= protocol.FlagNoPermBits | 0777
|
||||||
} else {
|
} else {
|
||||||
flags |= uint32(info.Mode() & os.ModePerm)
|
flags |= uint32(info.Mode() & os.ModePerm)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user