On Tue, Dec 21, 2004 at 10:44:15AM -0300, Jorge Arellano Cid wrote:
Does anyone know better about umask's effects in depth?
such as? it's only purpose in life is to be able to control the default permissions of created files. file can of course have their permissions changed at any time, so it is entirely possible to write file creation code in a way that any umask that is set will pretty much be ignored. umask() will return the current umask (if this is the first time being called, you will get the umask as set by the shell environment), so you can check and see if any particular umask is prefered by the user, or you can go ahead and ignore that and set things as you will. -brian -- "Now you know why I got the everliving hell OUT of Windows administration. Knowing it doesn't make it any easier. It's just broken-as-designed."