Add a patch to msmtp to not specially parse `"' and `'' in netrc. - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
 (HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset 79cb23b794e7c9c958d1f0a09da97811fa43ba42
 (DIR) parent 65fe14512f72863496dceb7f3eeba0dd0b7a4644
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Mon, 11 Feb 2019 22:11:39 
       
       Add a patch to msmtp to not specially parse `"' and `'' in netrc.
       
       Diffstat:
        mail/msmtp/patch-src_netrc.c |  52 ++++++++++++++++++++++++++++++++++++++++++++
        1 files changed, 52 insertions(+), 0 deletions(-)
       ---
       diff -r 65fe14512f72 -r 79cb23b794e7 mail/msmtp/patch-src_netrc.c
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/mail/msmtp/patch-src_netrc.c      Mon Feb 11 22:11:39 2019 +0100
       @@ -0,0 +1,52 @@
       +$NetBSD$
       +
       +Handle `'' and `"' like any other characters not as quotes.
       +
       +--- src/netrc.c.orig   2018-12-12 22:49:10.000000000 +0000
       ++++ src/netrc.c
       +@@ -130,7 +130,6 @@ parse_netrc (const char *file)
       +       /* If we are defining macros, then skip parsing the line. */
       +       while (*p && last_token != tok_macdef)
       +       {
       +-          char quote_char = 0;
       +           char *pp;
       + 
       +           /* Skip any whitespace. */
       +@@ -144,33 +143,11 @@ parse_netrc (const char *file)
       +           tok = pp = p;
       + 
       +           /* Find the end of the token. */
       +-          while (*p && (quote_char || !isspace ((unsigned char)*p)))
       ++          while (*p && !isspace ((unsigned char)*p))
       +           {
       +-              if (quote_char)
       +-              {
       +-                  if (quote_char == *p)
       +-                  {
       +-                      quote_char = 0;
       +-                      p ++;
       +-                  }
       +-                  else
       +-                  {
       +-                      *pp = *p;
       +-                      p ++;
       +-                      pp ++;
       +-                  }
       +-              }
       +-              else
       +-              {
       +-                  if (*p == '"' || *p == '\'')
       +-                      quote_char = *p;
       +-                  else
       +-                  {
       +-                      *pp = *p;
       +-                      pp ++;
       +-                  }
       +-                  p ++;
       +-              }
       ++              *pp = *p;
       ++              pp ++;
       ++              p ++;
       +           }
       +           /* Null-terminate the token, if it isn't already. */
       +           if (*p)