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

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Marc Haber
CC: exim-dev
Subject: Re: [exim-dev] fopen(), umask, and file permissions
On Thu, 23 Feb 2006, Marc Haber wrote:

> mode_t saved;
> saved = umask(0777);
> f = Ufopen(filename, options);
> umask(saved);


Yes, that is tidier. Why didn't I think of that?

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