Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
So, what is Inplace doing and how and why is it changing permissions? And how can I stop it?
Investigate.
http://search.cpan.org/src/CHIPT/File-Inplace-0.20/lib/File/Inplace.pm
No chmod, no umask, uses File::Copy, File::Temp
http://search.cpan.org/src/NWCLARK/perl-5.8.8/lib/File/Copy.pm
No chmod, no umask
http://search.cpan.org/src/NWCLARK/perl-5.8.8/lib/File/Temp.pm
Bingo
# 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; }
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.

In reply to Re: File::Inplace module is altering file permissions/ownership by Anonymous Monk
in thread File::Inplace module is altering file permissions/ownership by mojodaddy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others about the Monastery: (6)
    As of 2014-04-21 01:33 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      April first is:







      Results (489 votes), past polls