On 02/27/15 09:07, Guenther Niess wrote:
> On 02/27/15 03:20, Anthony J. Bentley wrote:
>> I reported this to bugs@ a while back, because I had hit the same issue.
>> # in secrets definitely worked on OpenBSD at some point in the past
>> (maybe before sendmail's makemap(8) was removed?).
> 
> By looking into makemap.c it seems the bug was fixed by version 1.19 and
> reintroduced by version version 1.50 not sure if it was intended.

I will test the following patch later today which should allow escaping
a hash and a backslash symbol within a password.

Index: makemap.c
===================================================================
RCS file: /cvs/src/usr.sbin/smtpd/makemap.c,v
retrieving revision 1.52
diff -u -p -r1.52 makemap.c
--- makemap.c   20 Jan 2015 17:37:54 -0000      1.52
+++ makemap.c   27 Feb 2015 09:10:57 -0000
@@ -255,7 +255,8 @@ parse_map(char *filename)
                return 0;
        }

-       while ((line = fparseln(fp, &len, &lineno, delim, 0)) != NULL) {
+       while ((line = fparseln(fp, &len, &lineno, delim,
FPARSELN_UNESCCOMM |
+                       FPARSELN_UNESCCONT | FPARSELN_UNESCESC)) != NULL) {
                if (! parse_entry(line, len, lineno)) {
                        free(line);
                        fclose(fp);


-- 
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to