Re: Setting global umask
Re: Setting global umask
- Subject: Re: Setting global umask
- From: Tom Harrington <email@hidden>
- Date: Mon, 14 Jan 2002 00:57:41 -0700
Jody Fairchild wrote:
one thing you might consider is temporarily spawning a shell as the user, in
order to read the default umask ... you could do this by running a tiny
shell script which writes its umask value to stdout as an NSTask.
It would seem that a saner approach is to use the POSIX umask()
function-- "man 2 umask" should give all necessary details for this
function's use.
--
Tom Harrington, Cybernetic Entomologist
email@hidden