Re: [PATCH] netrc: only remove backslash when we have quotes

2022-02-13 Thread Tim Rühsen
One thing is that different programs/parsers handle this differently, because there is no standardization for the .netrc file. Some support spaces inside tokens, some not. The quotation mark is a wget extension to allow spaces and tabs inside a token. That means quotation marks inside the

Re: [PATCH] netrc: only remove backslash when we have quotes

2022-02-13 Thread Tim Rühsen
After looking further into this, I added a new unit test function for parse_netrc_fp(). In short: - \ always escapes the next character. - that means, \ in a password needs to be escaped using \\ This also means that we don't have to change code. We have to communicate better that backslashes