Hello
I'm modifying a toaster (current version of toaster on all software) to use the mysql auth rather than cdb files.
I'm also trying to add the chkuser-0.6.mysql.patch but it fails at hunk 4
From qmail-smtpd.c.rej I see:
***************
*** 413,418 ****
}
else
if (!addrallowed()) { err_nogateway(); return; }
if (!stralloc_cats(&rcptto,"T")) die_nomem();
if (!stralloc_cats(&rcptto,addr.s)) die_nomem();
if (!stralloc_0(&rcptto)) die_nomem();
--- 610,616 ----
}
else
if (!addrallowed()) { err_nogateway(); return; }
+ if (!realrcpt_check()) { err_realrcpt(); return; }
if (!stralloc_cats(&rcptto,"T")) die_nomem();
if (!stralloc_cats(&rcptto,addr.s)) die_nomem();
if (!stralloc_0(&rcptto)) die_nomem();Now I'm not a programmer by any means but It appears to be trying to insert a single line:
if (!realrcpt_check()) { err_realrcpt(); return; }When I look in qmail-smtpd.c and look for the lines around where the insert is supposed to happen I see:
}
else {
if (!addrallowed()) { err_nogateway(); return; }
if (!envelope_scanner()) return;
}
if (!stralloc_cats(&rcptto,"T")) die_nomem();
if (!stralloc_cats(&rcptto,addr.s)) die_nomem();
if (!stralloc_0(&rcptto)) die_nomem();Now I figure you could probably toss that extra line in there just about anywhere and still be able to compile the program but you might be calling realrcpt_check() at the wrong time and thus negate it's benefit.
Can anyone clear up exactly where that line is supposed to be inserted?
TIA!
David Shirley http://www.webquarry.com
