From c8ffae52426395aaf43bdc182802f6b5385be3c6 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 7 Mar 2013 14:29:13 +0000 Subject: [PATCH] fix defect 3403 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15412 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/updatenode.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index b0c5066e5..ecf561a02 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -1343,11 +1343,11 @@ sub updatenodesyncfiles push @$args,"-f" ; push @$args,$::fanout; } - # if (defined($::USER)) { # -l contains sudo (TODO SUPPORT?) - # push @$args,"--sudo" ; - # push @$args,"-l" ; - # push @$args,"$::USER" ; - # } + if (defined($::USER)) { # -l must sudo + push @$args,"--sudo" ; + push @$args,"-l" ; + push @$args,"$::USER" ; + } push @$args,"-F" ; push @$args,"$synclist" ; my $nodestring = join(',', @{$syncfile_node{$synclist}});