Switching from shell cp to File::Copy. It:

- is slightly faster (no subprocess)

- makes it possible to use Crypt::PWSafe3 under perl -T (taint mode)
  { older version generated errors Insecure $ENV{PATH} while running with -T switch }

- should resolve problems with running and testing on Windows
  (http://www.cpantesters.org/cpan/report/5be028b2-d2ec-11e1-853f-cec147eb5e0d
   http://www.cpantesters.org/cpan/report/ea8cb70f-6e9c-1014-b601-c7411ede6b02
   http://www.cpantesters.org/cpan/report/2dd017ec-6c05-1014-a000-7353ce65dec9 )
This commit is contained in:
Marcin Kasperski
2012-11-15 09:18:27 +01:00
parent 4cf8fe6eb9
commit 5568a6cc1e
2 changed files with 3 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ use Digest::HMAC;
use Digest::SHA;
use Crypt::Random qw( makerandom );
use Data::UUID;
use Shell qw(mv cp);
use File::Copy qw(cp);
use File::Spec;
use FileHandle;
use Data::Dumper;

View File

@@ -1,4 +1,5 @@
# -*-perl-*-
#!perl -T
#
# testscript for Crypt::PWSafe3 Classes by Thomas Linden
#
# needs to be invoked using the command "make test" from