diff options
| author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-04-05 22:09:37 -0700 | 
|---|---|---|
| committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-04-05 22:09:37 -0700 | 
| commit | 8cd6dce2f7f6ed058ada32b875377fc3e4c61432 (patch) | |
| tree | 2828c66f18154b438d6b47b36cdfbffba399da3f | |
| parent | ecc62d95b95fd802dec09a3e0707eb536bf26960 (diff) | |
| download | vyatta-cfg-system-8cd6dce2f7f6ed058ada32b875377fc3e4c61432.tar.gz vyatta-cfg-system-8cd6dce2f7f6ed058ada32b875377fc3e4c61432.zip | |
Use 3 arg open to create pipe
Safer from user doing nasty things with command args.
| -rwxr-xr-x | scripts/vyatta-load-user-key.pl | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/scripts/vyatta-load-user-key.pl b/scripts/vyatta-load-user-key.pl index 29163f6a..d64dba8a 100755 --- a/scripts/vyatta-load-user-key.pl +++ b/scripts/vyatta-load-user-key.pl @@ -71,7 +71,7 @@ sub geturl {      }      $cmd .= " $url"; -    open (my $curl, "$cmd |" ) +    open (my $curl, "-|", $cmd )  	or die "$cmd command failed: $!";      return $curl; | 
