Re: umask of files created in COMPILE_DIR

Todd Wade <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <[email protected]>

----- Original Message ----
From: Larry Leszczynski <[email protected]>
>> I'm not seeing a umask being applied when File::Temp creates the file:
>
> It is being applied, it just doesn't do anything.
>
> Try changing your umask to 0222 and do the same test:
>
> $ rm sysopened
> $ umask 0222
> $ umask
> 0222
> $ perl -MFcntl -e 'sysopen(my $fh, "./sysopened", O_WRONLY | O_APPEND |
> O_CREAT, 0600)'
> $ ls -l sysopened 
> -r--------  1 larry  staff  0 Sep  9 12:15 sysopened

Ok I get it now. Thank you!

Todd W.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.