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
Access rights in FindBin::Bin #7814
Comments
From mhooreman@keyware.comCreated by mhooreman@keyware.comThis is a bug report for perl from mhooreman@keyware.com, Say we have a script /opt/test.pl who use FindBin::Bin. When I run, as bar, and into the /home/bar directory: Thanks to take a look at this. Michael HOOREMAN Perl Info
|
From @rgsmhooreman@keyware.com (via RT) wrote:
The problem actually comes from Cwd, because getcwd() doesn't find the The patch below might fix this, modulo portability problems : Change 24375 by rgs@bloom on 2005/05/03 08:53:25 Fix for [perl #34252] Access rights in FindBin::Bin Affected files ... ... //depot/perl/lib/FindBin.pm#18 edit Differences ... ==== //depot/perl/lib/FindBin.pm#18 (text) ==== @@ -93,7 +93,7 @@ -$VERSION = "1.44"; sub init croak("Cannot find current script '$0'") unless(-f $script); - # Ensure $script contains the complete path incase we C<chdir> + my $cwd = getcwd(); |
The RT System itself - Status changed from 'new' to 'open' |
@rgs - Status changed from 'open' to 'resolved' |
From @nwc10On Tue, May 03, 2005 at 11:21:59AM +0200, Rafael Garcia-Suarez wrote:
should that last line be $script = File::Spec->catfile($cwd, $script) ? Nicholas Clark |
From @rgsNicholas Clark wrote:
Of course. Just fixed. |
Migrated from rt.perl.org#34252 (status was 'resolved')
Searchable as RT34252$
The text was updated successfully, but these errors were encountered: