[apologies if this has already been reported - it isnt in the archives]

Hi -

A bug against qmailadmin was recently reported to this list where by all
non-postmaster accounts were unable to redirect their mail due to qmailadmin
cgi script seg faulting. Lindsay Haisley traced it to the doredirect()
function and suggested fixing it with some timing adjustments as they
appeared to help. Having just been bitten by this problem I had another look
at the code and it looks like the bug is in the scat() function call and the
fact that it is missing a length argument.

The scat() call at line 335 in alias.c should read as follows:

scat(dot_file, "/.qmail", l);

Note the additional argument. This stops it running off the end of a string
buffer (presumably). This fixes the seg faults on my Debian Alpha box and
doesnt appear to break anything else.

Hope it helps anyone else with the problem,

Marcus

--
Marcus Williams - http://www.onq2.com

Reply via email to