× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Wed, 19 Jul 2006 08:59:40 -0400
"Crump, Mike" <Mike.Crump@xxxxxxxxxxxxxxxx> wrote:

Unfortunately I am not an expert of the C or run time API environment.
We may have to revert to using open instead but I'm wondering about the
umask 022 that you referenced.  You will have to assume that I don't
have a clue as to what umask is......

Your umask determines the default permissions of files you create. I think the
creation mode is 0666 & ~mask. So, for example, if you create a file under
umask 022, its mode would be 0666 & ~022 = 0644, meaning owner can read and
write, group can read, and others can read.

You might be wanting umask 077. 0666 & ~077 = 600, meaning that owner can read
and write but nobody else can do anything to the file.

You might just try setting your umask to 077 (that's octal) before doing the
fopen to see if the result is what you wanted.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.