G'day sidney,

Welcome to the Monastery.

"The line number in the error message indicates that it is running File::Temp version 0.2311 (the latest) or 0.2310, as they are the only versions with the mkdir call being on exactly line 542."

I did a bit of checking:

  1. The CPAN Testers report you gave as an example (https://www.cpantesters.org/cpan/report/a2c77f6e-77eb-11ed-aba6-9a79f339625c) has: "FAIL Mail-SpamAssassin-4.0.0-rc4a-TRIAL 5.18.2 GNU/Linux".
  2. https://perldoc.perl.org/5.18.2/File::Temp shows: "version 0.23". It also has a "Taint mode" note; this is very light on details but suggests a problem with File::Spec.
  3. "File::Temp v0.23 source" has at line 542: "... mkdir( $path, 0700) ...".

I haven't looked any further. Some potential avenues for your further troubleshooting.

Another idea might be to use Carp::Always to get a stacktrace leading to the "Insecure dependency in mkdir ..." message. I've often found this to be very useful in the past (e.g. in "Re: Image modules not returning or accepting GD::Image" just last week). Of course, that would require a "Mail-SpamAssassin-4.0.0-rc4b-TRIAL" (or whatever you call it) release and then awaiting subsequent CPAN Tester results; so, perhaps, an "if-all-else-fails" option.

— Ken


In reply to Re: Insecure dependency in mkdir while running with -T switch at ... File/Temp.pm line 542 by kcott
in thread Insecure dependency in mkdir while running with -T switch at ... File/Temp.pm line 542 by sidney

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.