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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: Marc Haber
Υ/ο: exim-dev
Αντικείμενο: 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