procmail
[Top] [All Lists]

Re: Maildir tmp problem <PATCH>

2001-07-12 00:13:01
I'm encountering the same problem. It is due to a bug in the new maildir name generating code in src/exopen.c

The author of this code meant to type strlcpy instead of strlcat

Changing the indicated code below in src/exopen.c should resolve the issue:
...
ultstr(0,(long)thepid,dot+1)
*(dot=strchr(p,'\0'))='_';
*(++dot+1)='.';
strlcat(dot+2,hostname(),end-dot);  /* CHANGE THIS TO strlcpy */
}
...
It's roughly line 51 (or so). Just keep the arguments the same and everything should suddenly just work. Someone should commit this change in if it hasn't already been done. Thx!

FWIW, the machine affected by this in my case is a FreeBSD 4.3-STABLE box.
--
  Andy Carrel - william(_dot_)carrel(_at_)infospace(_dot_)com - +1 (206) 
357-4607
Internet Sys. Eng. - Enterprise Infrastructure & Security - InfoSpace
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>