summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLeon Messner <elon@zwelf.net>2015-10-25 19:01:44 +0100
committerLeon Messner <elon@zwelf.net>2015-10-25 19:01:44 +0100
commita04116d13ea5968403259c37fc55e618a98b9dd9 (patch)
treefee927093a0a23656608a05ec53e0a4989675091 /scripts
parent5a67b5f11976a24d4c4fe40b91ff4fc0f55a0429 (diff)
downloadvyatta-cfg-a04116d13ea5968403259c37fc55e618a98b9dd9.tar.gz
vyatta-cfg-a04116d13ea5968403259c37fc55e618a98b9dd9.zip
Prevent grouping from capturing
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-load-config.pl2
-rwxr-xr-xscripts/vyatta-save-config.pl2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-load-config.pl b/scripts/vyatta-load-config.pl
index f6dfba3..517b7ff 100755
--- a/scripts/vyatta-load-config.pl
+++ b/scripts/vyatta-load-config.pl
@@ -129,7 +129,7 @@ elsif ( $mode eq 'url' ) {
}
my $rc = system("curl -# -o $url_tmp_file $load_file");
if ($proto =~ /^(scp|sftp)$/ && ($rc >> 8) == 51){
- $load_file =~ m/(scp|sftp):\/\/(.*?)\//;
+ $load_file =~ m/(?:scp|sftp):\/\/(.*?)\//;
my $host = $1;
if ($host =~ m/.*@(.*)/) {
$host = $1;
diff --git a/scripts/vyatta-save-config.pl b/scripts/vyatta-save-config.pl
index 439e873..0799dd4 100755
--- a/scripts/vyatta-save-config.pl
+++ b/scripts/vyatta-save-config.pl
@@ -125,7 +125,7 @@ if ($mode eq 'url') {
my $rc = 0;
if ($proto =~ /^(scp|sftp)$/){
- $save_file =~ m/(scp|sftp):\/\/(.*?)\//;
+ $save_file =~ m/(?:scp|sftp):\/\/(.*?)\//;
my $host = $1;
my $user = getpwuid($<);
if ($host =~ m/(.*)@(.*)/) {