Skip Menu |
 

This queue is for tickets about the FindBin CPAN distribution.

Report information
The Basics
Id: 63220
Status: open
Priority: 0/
Queue: FindBin

People
Owner: Nobody in particular
Requestors: SvenDowideit [...] home.org.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: FindBin($Bin) gives the wrong result in userdir/suexec/ubuntu
Download (untitled) / with headers
text/plain 838b
On my just installed Ubuntu 10.10, I've set up suexec-custom and userdir to point to a dir that I 'create' by making a softlink into my development directory. one of the perl cgi scripts is called 'edit', and FindBin($Bin) is returning '/usr/bin' rather than '/home/sven/foswiki/core/bin' it appears the incorrect result is due to a softlink '/usr/bin/edit' - if you call the cgi script the same thing as an actual executable, FindBin works as expected. FindBin 1.50, perl 5.10.1 -------------snip from running attached script in my setup I'm actually in /home/sven/src/foswiki/core/bin and FindBin($Bin) thinks i'm in /usr/bin FindBin version 1.50 --------------- the apache cfg is a variation on https://github.com/SvenDowideit/foswiki_releases/blob/master/git-foswiki.conf PS - why is rt only listing version 1.0.4? Cheers Sven
Subject: edit
Download edit
application/octet-stream 356b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #63220] FindBin($Bin) gives the wrong result in userdir/suexec/ubuntu
Date: Mon, 22 Nov 2010 08:25:05 -0600
To: bug-FindBin [...] rt.cpan.org
From: Graham Barr <gbarr [...] pobox.com>
Download (untitled) / with headers
text/plain 201b
I suspect this is down to how apache is calling the CGI. What is $ENV{PATH} and $0 set to when the script in invoked ? Depending on how Apache has set the environment, FindBin may not work. Graham.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.