Re: [exim-dev] fopen(), umask, and file permissions

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Marc Haber
CC: exim-dev
Assumpte: Re: [exim-dev] fopen(), umask, and file permissions
On Fri, 17 Feb 2006, Marc Haber wrote:

> On Thu, Feb 16, 2006 at 04:58:47PM +0000, Philip Hazel wrote:
> > On Thu, 16 Feb 2006, Marc Haber wrote:
> > > How about setting umask 077, creating an fopen wrapper which takes a
> > > mode as well, and adding code to the testsuite that greps through the
> > > code and raises an alarm whenever it finds an unwrapped fopen() call
> > > outside the wrapper itself?
> >
> > There is already a wrapper for opening msglogs, so I guess extending it
> > makes sense (but I can't remember if it uses fopen() or open()).
>
> Want me to file a bug?


No need. I already have it on my list of things to do, and filing a bug
just means that I have to respond. :-)

-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book