From: Dave Howorth <[email protected]>
> Todd Wade wrote:
>> File::Temp forces the file to 0600 and therefore doesn't respect the
>> starting
>> users/processes umask (contrary to the mailing list archives :0).
>>
>> $ umask
>> 0002
>
> Am I missing something? This mask says "never allow write permission for
> others" ...
I think so. Thats not at all what this umask says:
$ umask
0022
$ touch foo.1
$ ls -al
-rw-r--r-- 1 me me 0 Sep 7 09:06 foo.1
$ umask 0002
$ touch foo.2
$ ls -al
-rw-r--r-- 1 me me 0 Sep 7 09:06 foo.1
-rw-rw-r-- 1 me me 0 Sep 7 09:07 foo.2
Notice how when the umask is 0002 the second file is group writable.
>> $ pwd
>> /home/me/foo
>> $ ls -l
>> total 0
>> $ perl -MFile::Temp -le '$File::Temp::KEEP_ALL = 1; File::Temp->new(DIR =>
>> ".");'
>> $ ls -l
>> total 0
>> -rw------- 1 me me 0 Sep 6 22:32 lz0IkRPULz
>
>... and this permission does not provide write permission for others, so
> what's the problem?
My problem is because the umask is 0002, the files should be g+r,g+w
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates