New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with copying files in a Safe compartment #9438
Comments
From tggbiz@ntlworld.comCreated by tggbiz@ntlworld.comCopying files does not work in a Safe compartment, In order to reproduce the results just paste the code into 2 files # File: SafeCopyDemo.pl use Safe; print "Running SafeCopyDemo\n"; do_copy_file(@ARGV); sub some_sub sub do_copy_file if (defined($cpt) && exists &{$cpt->varglob('copy_file')}) sub load_compartment # File rdo.pl use File::Copy; print "Loading rdo.pl\n"; sub copy_file copy ($from_filespec, $to_filespec); print "\tCopied $from_filespec to $to_filespec\n"; # Begin File::Copy Test on Perl 5.8 Running SafeCopyDemo # End File::Copy Test on Perl 5.8 Perl Info
|
From @rgs2008/8/3 via RT tggbiz <perlbug-followup@perl.org>:
I think that, as with most bugs of this type with Safe, careful use of |
The RT System itself - Status changed from 'new' to 'open' |
From tggbiz@ntlworld.comI thought I'd better add that the problem exists with Perl 5.10 as well as Can you give me an estimate as to when you might have a workaround or fix on Thanks, Tom C:\GLB\test\newtest\SafeCopyDemo>perl SafeCopyDemo.pl xxx yyy C:\GLB\test\newtest\SafeCopyDemo>perl -v This is perl, v5.10.0 built for MSWin32-x86-multi-thread Copyright 1987-2007, Larry Wall Binary build 1003 [285500] provided by ActiveState Perl may be copied only under the terms of either the Artistic License or Complete documentation for Perl, including FAQ lists, should be found on C:\GLB\test\newtest\SafeCopyDemo>perl -V Characteristics of this binary (from libperl): ----- Original Message -----
|
Migrated from rt.perl.org#57552 (status was 'open')
Searchable as RT57552$
The text was updated successfully, but these errors were encountered: