Bug#280282: exim4-daemon-heavy: files in /var/spool/exim4/scan are mode 666

Roderick Schertler roderick at argon.org
Tue Feb 14 15:40:38 UTC 2006


On Tue, 14 Feb 2006 15:55:58 +0100, Marc Haber <mh+debian-packages at zugschlus.de> said:
>
> Still no response from Upstream. Just a hunch: Does it help to set
> umask 022 in the init script?

I haven't actually tested it, but I shouldn't think so.  That's the mask
that's already set when the init script is run.  Plus, Exim sets it to 0
on purpose (exim.c line 1438):

    /* Set the umask to zero so that any files that Exim creates are created
    with the modes that it specifies. */

    umask(0);

then creates the files with fopen(), so they get 0666 & 0 == 0666
(demime.c line 259 plus other places):

    *f = fopen(CS file_name,"wb+");

-- 
Roderick Schertler
roderick at argon.org




More information about the Pkg-exim4-maintainers mailing list