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

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Philip Hazel
Data:  
Para: Marc Haber
CC: exim-dev
Asunto: 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