2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-01 09:07:36 +00:00

Changes suggested by comments

This commit is contained in:
Mark Gurevich
2017-03-21 11:45:26 -04:00
parent f78c9320cc
commit 1463615f3f

View File

@@ -666,11 +666,6 @@ sub parse_args_xdcp
$::NODE_RCP = 1;
}
# find out who is the current user running xdcp
my $current_userid = getpwuid($>);
$ENV{DSH_FROM_USERID} = $current_userid;
my $to_userid;
if ($options{'user'}) # if -l option
{
@@ -678,6 +673,11 @@ sub parse_args_xdcp
}
else
{
# find out who is the current user running xdcp
my $current_userid = getpwuid($>);
$ENV{DSH_FROM_USERID} = $current_userid;
$to_userid = $current_userid;
}
# Save userid running this command in ENV variable.