Merge pull request #1868 from mogwa1/umask

Change permissions of newly created files and directories (fixes #1339)
This commit is contained in:
Jakob Borg 2015-05-25 08:34:34 +02:00
commit 0d659933aa
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