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 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