Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Inline CPAN distribution.

Report information
The Basics
Id: 20603
Status: resolved
Priority: 0/
Queue: Inline

People
Owner: Nobody in particular
Requestors: Heiko.Klein [...] gmx.net
Cc:
AdminCc:

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



Subject: Useless warning when PATH contains non-existing directories
When working with PATH elements in the network, i.e. NFS, it happens very often that the PATH environment contains non-existing directories. When running a perl program using Inline, I get the following warning: Use of uninitialized value in bitwise and (&) at blib/lib/Inline.pm (autosplit into blib/lib/auto/Inline/env_untaint.al) line 983. Those are generally not a problem of the perl program and could be suppressed by removing non-existing path elements i.e. by changing line 983 from: $ENV{PATH} = join $delim, grep {not /^\./ and not ((stat($_))[2] & 0022) } split $delim, $ENV{PATH}; to $ENV{PATH} = join $delim, grep {not /^\./ and -d $_ and not ((stat(_))[2] & 0022) } split $delim, $ENV{PATH}; Best regards, Heiko
RT-Send-CC: Heiko.Klein [...] gmx.net, sisyphus1 [...] optusnet.com.au
On Fri Jul 21 07:01:56 2006, HEIKOK wrote: Show quoted text
> When working with PATH elements in the network, i.e. NFS, it happens > very often that the PATH environment contains non-existing
directories. Show quoted text
> When running a perl program using Inline, I get the following warning: > > Use of uninitialized value in bitwise and (&) at blib/lib/Inline.pm > (autosplit into blib/lib/auto/Inline/env_untaint.al) line 983. >
I made a quick attempt to reproduce this behaviour, but failed. Do you have a simple demo script for this ? Cheers, Rob
Subject: Re: [rt.cpan.org #20603] Useless warning when PATH contains non-existing directories
Date: Mon, 10 Nov 2008 11:14:09 +0100
To: bug-Inline [...] rt.cpan.org
From: Heiko Klein <Heiko.Klein [...] gmx.net>
The function causing this error is only used when using the 'UNTAINT' keyword. See attached script (but ignore the 'DIRECTORY' warning). Heiko Sisyphus via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=20603 > > > On Fri Jul 21 07:01:56 2006, HEIKOK wrote:
>> When working with PATH elements in the network, i.e. NFS, it happens >> very often that the PATH environment contains non-existing
> directories.
>> When running a perl program using Inline, I get the following warning: >> >> Use of uninitialized value in bitwise and (&) at blib/lib/Inline.pm >> (autosplit into blib/lib/auto/Inline/env_untaint.al) line 983. >>
> > I made a quick attempt to reproduce this behaviour, but failed. Do you > have a simple demo script for this ? > > Cheers, > Rob >
#! /usr/bin/perl -w use warnings; BEGIN { $ENV{PATH} = "/somewhere/out/there".":$ENV{PATH}"; } use Inline (C => 'DATA', UNTAINT => 1); greet('Ingy'); greet(42); __END__ __C__ void greet(char* name) { printf("Hello %s!\n", name); }
RT-Send-CC: sisyphus [...] cpan.org
This has, I believe, been addressed in Inline-0.45 (suggested amendment applied), though it's untested by the test suite. If there's a problem with the way this has been dealt with, please feel free to re-open the ticket (or submit a new report). To further discuss the issue (but without re-opening the ticket), consider posting to the Inline mailing list, or send a private email to sisyphus at cpan dot org. Thanks for the report !! Cheers, Rob