Commit 0392dd9e authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix.

parent 837d5cc2
......@@ -224,7 +224,8 @@ if (exists($auth->{'console'})) {
$command = "$CONSOLEBIN -e -a $tempfile $nodeid";
}
else {
my $sshopts = "";
my $sshopts = "";
my $username = $uid;
# No gid, see if a phony user.
if (!defined($gid)) {
......@@ -242,7 +243,7 @@ else {
}
}
$command = "/usr/bin/ssh " . ($port ? "-p $port" : "") . " " .
"$sshopts ${uid}\@${nodeid}";
"$sshopts ${username}\@${nodeid}";
}
# Silly taint check stuff.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment