Ah, umask.  Forgot that one as I rarely change it on my own servers, and 
naturally set it in my profile at the shell.  Thanks for the hints about 
IO::File, I will check it out, though using the regular open followed by 
a chmod seems to be holding up under fire.

http://danconia.org



Michael Fowler wrote:
> On Thu, Jul 11, 2002 at 03:49:05PM -0400, Wiggins d'Anconia wrote:
> 
>>however, I am still curious about open's ability to do this rather than
>>requiring a separate function, so can it?
> 
> 
> The open function can't accomplish what you want.  The sysopen function, or
> IO::File's open, can nearly accomplish what you want.
> 
> The latter two can take a permissions argument (see perldoc -f sysopen,
> perldoc IO::File).  However, the permissions are affected by the umask
> (perldoc -f umask, man umask), which is why you're having problems now; the
> umask was changed, affecting the default permissions of your file.
> 
> 
> Michael
> --
> Administrator                      www.shoebox.net
> Programmer, System Administrator   www.gallanttech.com
> --
> 
> 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to