Menu

Insecure $ENV{PATH} insecure

Help
2005-07-27
2013-05-20
  • amr roushdi

    amr roushdi - 2005-07-27

    Hi there , I get the following error in debug mode
    Insecure $ENV{PATH} while running with -T switch at D:/eclipse_projects/testdebug/testdebug.pl line 10, <STDIN> line 1.
    at D:/eclipse_projects/testdebug/testdebug.pl line 10

    the command in question is system("$command") ;
    where $command = dir 

    anway to rectify this  ur help is greatly appreciated .
    thanks

     
    • Oliver Brusberg

      Oliver Brusberg - 2005-08-10

      Hi,

      You are running the script in taint mode (probably Window -> Preferences -> Perl EPIC -> Enable taint mode checked). In taint mode it is not allowed to run external commands without having set the path $ENV{PATH} explicitly. The following should work:

      $ENV{PATH} = "C:\\WINDOWS\\system32";
      system("dir");

      Or do not use taint mode. On windows taint mode is a pain ...

      Hope that helps,
      Oliver

       

Log in to post a comment.