From 8e0520887a9f7b3a354eef93c4096d0fdadc6417 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 26 May 2014 11:09:35 +0200 Subject: [PATCH] Send default permissions 0777 on directories when IgnorePerms set (ref #284) --- scanner/walk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanner/walk.go b/scanner/walk.go index 03fc86bb4..374c1dd68 100644 --- a/scanner/walk.go +++ b/scanner/walk.go @@ -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) }