summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-05 22:09:37 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-05 22:09:37 -0700
commit8cd6dce2f7f6ed058ada32b875377fc3e4c61432 (patch)
tree2828c66f18154b438d6b47b36cdfbffba399da3f
parentecc62d95b95fd802dec09a3e0707eb536bf26960 (diff)
downloadvyatta-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-xscripts/vyatta-load-user-key.pl2
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;