Re: [exim-dev] [Bug 1671] segfault after delivery

Página Inicial
Delete this message
Reply to this message
Autor: Heiko Schlittermann
Data:  
Para: exim-dev
Assunto: Re: [exim-dev] [Bug 1671] segfault after delivery
Hi,

duplicity ….

admin@??? <admin@???> (Mi 19 Aug 2015 14:44:20 CEST):
> https://bugs.exim.org/show_bug.cgi?id=1671
>
> --- Comment #5 from Wolfgang Breyha <wbreyha@???> ---
> Created attachment 828
> --> https://bugs.exim.org/attachment.cgi?id=828&action=edit
> fix SIGSEGV for split_directory
>
> I think, I found *one* reason.... first of all it only happens if
> split_spool_directory = true
> is used.
>
> The patch Phil referred to contains the following for transport.c near
> exim-4.86/src/transport.c:1755
> --------
>      if (split_spool_directory)
> -      sprintf(CS(buffer + path_len), "%c/%s-D", new_message_id[5],
> new_message_id);
> +       sprintf(CS spool_file, "%s%c/%s-D",
> +                     spool_dir, new_message_id[5], msgq[i].message_id);
>      else
> -      sprintf(CS(buffer + path_len), "%s-D", new_message_id);
> +       sprintf(CS spool_file, "%s%s-D", spool_dir, msgq[i].message_id);
> --------


That's exactly what I proposed in my patch. :)
So probably it's right. Two people found the same fix independend of
each other…

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -