all: Adjust windows perms in fs package (#5200)

This commit is contained in:
Simon Frei
2018-09-16 16:09:56 +02:00
committed by GitHub
parent 60eb9088ff
commit 272fb3b444
4 changed files with 36 additions and 51 deletions

View File

@@ -1453,9 +1453,6 @@ func (f *sendReceiveFolder) performFinish(ignores *ignore.Matcher, file, curFile
// handle that.
curMode := uint32(stat.Mode())
if runtime.GOOS == "windows" && osutil.IsWindowsExecutable(file.Name) {
curMode |= 0111
}
// Check that the file on disk is what we expect it to be according
// to the database. If there's a mismatch here, there might be local