mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
abe7196c53
This patch ensures that we strip "\r" characters on both Windows as well as Unix when we read text files. This should prevent the issue where some Tor state files have been moved from a Windows machine, and thus contains CRLF line ending, to a Unix machine where only \n is needed. We add a test-case to ensure that we handle this properly on all our platforms. See: https://bugs.torproject.org/tpo/core/tor/33781
8 lines
455 B
Plaintext
8 lines
455 B
Plaintext
o Minor bugfixes (compatibility):
|
|
- Strip '\r' characters when reading text files on Unix platforms.
|
|
This should resolve an issue where a relay operator migrates a relay from
|
|
Windows to Unix, but does not change the line ending of Tor's various state
|
|
files to match the platform, the CRLF line endings from Windows ends up leaking
|
|
into other files such as the extra-info document. Fixes bug 33781; bugfix on
|
|
0.0.9pre5.
|