diff options
author | Jakob Borg <jakob@kastelo.net> | 2021-11-22 09:38:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 09:38:24 +0100 |
commit | 1754c933706792c3945009d87d1e560cead1ade1 (patch) | |
tree | ea4cd5cede8ad58c60045ca47379b78386d4ba05 /build.go | |
parent | 4b750b6dc3dc9904c6046d1c6370b57e1710cb4b (diff) | |
download | syncthing-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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |