in reply to File::Inplace module is altering file permissions/ownership
With a umask of 066 only the creator of the file will be able to read or write to the file. File::Inplace needs to account for this behaviour.# Internal routine to force a temp file to be writable after # it is created so that we can unlink it. Windows seems to occassional +ly # force a file to be readonly when written to certain temp locations sub _force_writable { my $file = shift; my $umask = umask(); umask(066); chmod 0600, $file; umask($umask) if defined $umask; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File::Inplace module is altering file permissions/ownership
by mojodaddy (Pilgrim) on Mar 05, 2007 at 04:11 UTC |