Todd Wade
Fri, 09 Sep 2011 10:45:00 -0700
From: Larry Leszczynski <lar...@emailplus.org> > It's true that File::Temp sets the mode of the file explicitly, because > it creates the file as 0600 (at which point umask would be applied)
I'm not seeing a umask being applied when File::Temp creates the file: $ umask 0002 $ touch touched $ perl -MFcntl -e 'sysopen(my $fh, "./sysopened", O_WRONLY | O_APPEND | O_CREAT, 0600)' $ ls -l -rw------- 1 me me 0 Sep 9 10:35 sysopened -rw-rw-r-- 1 me me 0 Sep 9 10:35 touched If I take out the 0600 from the sysopen call, then the file gets g+r,g+w > and then explicitly does a "chmod 600" (overriding any effect > umask would have had). If I take the chmod out of File::Temp, the file still gets g+r,g+w only. Todd W. _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates