Browse Source

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

Jakob Borg 11 years ago
parent
commit
8e0520887a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scanner/walk.go

+ 1 - 1
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)
 					}