fix PathTools taint handling for Perl 5.6
authorZefram <zefram@fysh.org>
Thu, 20 Jul 2017 05:32:27 +0000 (06:32 +0100)
committerZefram <zefram@fysh.org>
Thu, 20 Jul 2017 05:32:27 +0000 (06:32 +0100)
commit2ba334c7bf8365ab5c22306f4ef14f6d16569157
tree20578be89bb98deb6c9431fb116c2057064ff9e5
parent285ac8e2a208401b204f46b958d170d1cc5bd361
fix PathTools taint handling for Perl 5.6

PathTools's reserve code for detecting tainted values on Perl 5.6
generated a warning if the value was undefined, which it commonly was.
Make it allow all undefined values (which get filtered out in the next
step) without warning.  Its test script for tainting behaviour also failed
to detect whether tainting was turned on on Perl 5.6, incorrectly skipping
the test script on the basis that the Perl doesn't support tainting.
Switch that check to an empirical arrangement that works on any Perl.
13 files changed:
dist/PathTools/Changes
dist/PathTools/Cwd.pm
dist/PathTools/lib/File/Spec.pm
dist/PathTools/lib/File/Spec/AmigaOS.pm
dist/PathTools/lib/File/Spec/Cygwin.pm
dist/PathTools/lib/File/Spec/Epoc.pm
dist/PathTools/lib/File/Spec/Functions.pm
dist/PathTools/lib/File/Spec/Mac.pm
dist/PathTools/lib/File/Spec/OS2.pm
dist/PathTools/lib/File/Spec/Unix.pm
dist/PathTools/lib/File/Spec/VMS.pm
dist/PathTools/lib/File/Spec/Win32.pm
dist/PathTools/t/taint.t