FreeBSD Bugzilla – Attachment 166879 Details for
Bug 207117
mail/ssmtp: Config file is parsed incorrectly if '#' character is part of an option value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
a patch to the existing patch for ssmtp.c file
ssmtp-2.64_1.diff (text/plain), 717 bytes, created by
Sergey Manucharian
on 2016-02-11 21:17:03 UTC
(
hide
)
Description:
a patch to the existing patch for ssmtp.c file
Filename:
MIME Type:
Creator:
Sergey Manucharian
Created:
2016-02-11 21:17:03 UTC
Size:
717 bytes
patch
obsolete
>Index: files/patch-ssmtp.c >=================================================================== >--- files/patch-ssmtp.c (revision 408698) >+++ files/patch-ssmtp.c (working copy) >@@ -227,12 +227,20 @@ > } > header_save(p); > >-@@ -876,11 +900,11 @@ >+@@ -876,12 +900,18 @@ >+ char *begin=buf; > char *rightside; > /* Make comments invisible */ >- if((p = strchr(buf, '#'))) { >+- if((p = strchr(buf, '#'))) { > - *p = (char)NULL; >-+ *p = '\0'; >++ if((p = strchr(buf, '#'))) { >++ /* check if # is a part of a param */ >++ if((q = strchr(buf, '='))) { >++ if ((int)(p-buf) < (int)(q-buf)) >++ *p = '\0'; >++ } >++ else >++ *p = '\0'; > } > > /* Ignore malformed lines and comments */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 207117
: 166879 |
175355