I see my "reputation" points are going into the negative whenever I reply to postings with mere reports that the advice I'm being given isn't working. Am I doing something anti-social? :-)

Anyway, here's some new info that obviously answers the question, although I'm not sure why... leading me to think there's either a design error, or a bug.

Turns out, the file I'm writing to is a symlink owned by root, but it points to one of my files owned by me. I wasn't aware of this till now, and is probably the result of a system restore that was recently done due to a failed hard drive. (The symlink was always there, and used to be owned by me before the crash, but it must have gotten the root ownership when it was restored.)

It's clear that perl is noticing that the file isn't owned by me, and is preventing me from opening it without even trying. I did the right thing--I changed my gid back to my own, but perl still insists on not even attempting to open it. Why not, at this point, just defer to the OS and let open succeed or fail accordingly. Why should perl attempt to to play God (above the OS), especially if I'm trying to tell it not to. Not only did I NOT use -T, but I'm also trying my best to satisfy perl by setting my uid and gid to ME. What more do the designers of perl expect of me? If perl is going to play nazi above the OS, at least be smart about it and look to see if the final destination file is owned by me.


In reply to Re^2: Insecure dependency in open by argv
in thread Insecure dependency in open by argv

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!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            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.