Re: [Exim] Exim 4.12 on FreeBSD not running queues (solved?)

Página Inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Para: Marcin Simonides
CC: exim-users
Assunto: Re: [Exim] Exim 4.12 on FreeBSD not running queues (solved?)
On Fri, 1 Aug 2003, Marcin Simonides wrote:

> The problem on my FreeBSD 4.8-REL was caused by /dev/null being chmod 600!


My imagination isn't good enough to think of all the weird situations
that might arise. This is one of them...

>     if (devnull < 0) devnull = open("/dev/null", O_RDWR);
>     if (devnull != i) dup2(devnull, i);


That's clearly bad code. It should check the result of the open() call.
Mea culpa. I'll try to make it more robust.

Philip

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book