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

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: 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