Change permissions of newly created files and directories (fixes #1339)

This commit is contained in:
Bart De Vries 2015-05-25 00:12:51 +02:00
parent c51d3e59ea
commit badfc77339
2 changed files with 2 additions and 2 deletions

View File

@ -541,7 +541,7 @@ func (p *rwFolder) handleDir(file protocol.FileInfo) {
realName := filepath.Join(p.dir, file.Name)
mode := os.FileMode(file.Flags & 0777)
if p.ignorePerms {
mode = 0755
mode = 0777
}
if debug {

View File

@ -115,7 +115,7 @@ func (s *sharedPullerState) tempFile() (io.WriterAt, error) {
return nil, err
}
}
fd, err := os.OpenFile(s.tempName, flags, 0644)
fd, err := os.OpenFile(s.tempName, flags, 0666)
if err != nil {
s.failLocked("dst create", err)
return nil, err