• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting global umask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >re: Setting global umask (From: email@hidden (Jody Fairchild))

  • Prev by Date: Re: kCFCompareNumerically
  • Next by Date: Cocoa programming with Mac OS X
  • Previous by thread: re: Setting global umask
  • Next by thread: Re: cocoa-dev digest, Vol 2 #10 - 18 msgs
  • Index(es):
    • Date
    • Thread