diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-load-config.pl | 2 | ||||
-rwxr-xr-x | scripts/vyatta-save-config.pl | 2 |
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/(.*)@(.*)/) { |