develooper Front page | perl.perl5.porters | Postings from August 2008

Re: [perl #57552] Problem with copying files in a Safe compartment

Thread Previous
From:
Rafael Garcia-Suarez
Date:
August 4, 2008 03:52
Subject:
Re: [perl #57552] Problem with copying files in a Safe compartment
Message ID:
b77c1dce0808040352q3cd63c0di535ddc61b263e045@mail.gmail.com
2008/8/3 via RT tggbiz <perlbug-followup@perl.org>:
> Copying files does not work in a Safe compartment,
> despite an empty deny only list.
[...]
>
> Running SafeCopyDemo
> do_copy_file: Copying from XXX to YYY
> load_compartment
> load_compartment: Doing rdo.pl
> Loading rdo.pl
> do_copy_file: Calling rdo.pl copy_file
> Unable to create sub named "*Config::launcher" at C:/Perl/lib/Config.p
> +m line 71.

I think that, as with most bugs of this type with Safe, careful use of
the share() function to import the wanted namespaces into the Safe
compartment can solve your problem.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About