On Mon, 16 Aug 2004, Andy Wettstein wrote:
> BOOL use_chown = parent == spool_directory && geteuid() == root_uid;
> ...
> if (use_chown) Uchown(buffer, exim_uid, exim_gid);
>
> So I wonder what the purpose of that if statement is because I don't
> think this would ever really happen because exim won't deliver as
> root (unless you change the fixed_never_users at compile time).
The function in which that appears is used to create all kinds of
directories; in particular, for a new installation is is used to create
the spool directories. This can happen when Exim is running as root; it
therefore ensures that in that case, they are changed to exim:exim.
--
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