Subject: | parsing bug in auto_getconn |
auto_getconn() sometimes returns invalid socket name.
E.g. given the following line in sendmail.cf:
Xantispam, S=local:/var/run/antispam.sock,F=T,T=C:1s;S:10s;R:10s;E:30s
it returns "local:/var/run/antispam.sock,F=T" instead of
"local:/var/run/antispam.sock".
This is due to a bug in regexp (Milter.pm line 152:
if ($line =~ /^X(.+),\s*S\=(.+),\s*[FT]\=(.)/)
must be
if ($line =~ /^X(.+),\s*S\=(.+?),\s*[FT]\=(.)/)
non-greedy version eats socket name up to the first comma instead of the
last one.