aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_procmon.c
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2020-07-09 02:16:11 +0000
committerAlexander Færøy <ahf@torproject.org>2020-07-14 17:41:51 +0000
commitabe7196c53f23186f06e1c56a406ec4c9a75a4f7 (patch)
treeea5837cc885721db538faf778a107398a829fc02 /src/test/test_procmon.c
parentc9751e26119e375fcbc74107e89958957c00ee5e (diff)
downloadtor-abe7196c53f23186f06e1c56a406ec4c9a75a4f7.tar.gz
tor-abe7196c53f23186f06e1c56a406ec4c9a75a4f7.zip
Strip '\r' characters when reading text files on Unix.
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
Diffstat (limited to 'src/test/test_procmon.c')
0 files changed, 0 insertions, 0 deletions