aboutsummaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2021-11-22 09:38:24 +0100
committerGitHub <noreply@github.com>2021-11-22 09:38:24 +0100
commit1754c933706792c3945009d87d1e560cead1ade1 (patch)
treeea4cd5cede8ad58c60045ca47379b78386d4ba05 /build.go
parent4b750b6dc3dc9904c6046d1c6370b57e1710cb4b (diff)
downloadsyncthing-1754c933706792c3945009d87d1e560cead1ade1.tar.gz
syncthing-1754c933706792c3945009d87d1e560cead1ade1.zip
lib/config, lib/ignore: Write Windows line endings (fixes #7115) (#8052)
Diffstat (limited to 'build.go')
-rw-r--r--build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.go b/build.go
index 2a480a546..c2e105939 100644
--- a/build.go
+++ b/build.go
@@ -1293,7 +1293,7 @@ func zipFile(out string, files []archiveFile) {
if err != nil {
log.Fatal(err)
}
- bs = bytes.Replace(bs, []byte{'\n'}, []byte{'\n', '\r'}, -1)
+ bs = bytes.Replace(bs, []byte{'\n'}, []byte{'\r', '\n'}, -1)
fh.UncompressedSize = uint32(len(bs))
fh.UncompressedSize64 = uint64(len(bs))