missed one regular expression

This commit is contained in:
Christoph Klaffl 2017-12-10 16:10:49 +01:00
parent e260f9095f
commit adca6230b7
No known key found for this signature in database
GPG Key ID: FC1C525C2A47CC28
1 changed files with 1 additions and 1 deletions

View File

@ -919,7 +919,7 @@ sub getssh {
if ($fs =~ /\@/) {
$rhost = $fs;
$fs =~ s/^\S*\@\S*://;
$rhost =~ s/:$fs$//;
$rhost =~ s/:\Q$fs\E$//;
my $remoteuser = $rhost;
$remoteuser =~ s/\@.*$//;
if ($remoteuser eq 'root') { $isroot = 1; } else { $isroot = 0; }