X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FObject%2FRemote%2FConnector%2FLocalSudo.pm;fp=lib%2FObject%2FRemote%2FConnector%2FLocalSudo.pm;h=044d1060d2a0421b703fd16b336eb2526a32bade;hb=c824fdf36c659b3b6dbafe23a3021f2b1d6eeb3f;hp=f6b16eec418c1052a5c1f69ff499abac43d728e1;hpb=f8080c1c188fa6c4589ffcad8793e0cf7a8d4bdb;p=scpubgit%2FObject-Remote.git diff --git a/lib/Object/Remote/Connector/LocalSudo.pm b/lib/Object/Remote/Connector/LocalSudo.pm index f6b16ee..044d106 100644 --- a/lib/Object/Remote/Connector/LocalSudo.pm +++ b/lib/Object/Remote/Connector/LocalSudo.pm @@ -91,7 +91,8 @@ push @Object::Remote::Connection::Guess, sub { for ($_[0]) { # username followed by @ if (defined and !ref and /^ ([^\@]*?) \@ $/x) { - return __PACKAGE__->new(target_user => $1); + shift(@_); + return __PACKAGE__->new(@_, target_user => $1); } } return;