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

Top Page
Delete this message
Reply to this message
Author: Marc Haber
Date:  
To: exim-dev
Subject: Re: [exim-dev] fopen(), umask, and file permissions
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?

> Having
> the test suite grep the code does not fit into the test suite design
> (which doesn't require you to have the source available). Although it
> could be extended, I'm not sure it is the right thing to do.


I agree. This would probably be overengineering. More important things
to do.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835