On Thu, 8 Sep 2011 16:01:13 -0700 (PDT)
Todd Wade <[email protected]> wrote:

> From: Oleg Kostyuk <[email protected]>
> > But let's return to File::Temp. As I said - yes, it change
> > permissions to be 0600. Why you consider this as bug?
> 
> Mostly because its not documented. In general one sets at the system
> level the mask they want the files created by an app to have. I think
> most people would find it surprising when an app bypasses those
> settings without explanation.

The File::Temp people probably made the change the same time glibc did
for the mkstemp C function.

>From mkstemp(3):

    The file is created with permissions 0600, that is, read plus write
    for owner only.  (In glibc versions 2.06 and earlier, the file is
    created with  permissions  0666,  that  is, read and write for all
    users.)

I agree they probably should mention it in the File::Temp docs.


_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to