Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331249

Summary: [scp] incorrect home while logging in as root
Product: [Tools] Target Management Reporter: Anna Dushistova <anna.dushistova>
Component: RSEAssignee: Anna Dushistova <anna.dushistova>
Status: RESOLVED FIXED QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: normal    
Priority: P3 CC: nikita_shulga
Version: 3.3   
Target Milestone: 3.3 M5   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
the fix mober.at+eclipse: review+

Description Anna Dushistova CLA 2010-11-26 16:32:08 EST
On my machine(openSuse 11.2), root's home is /root, and not /home/root.
Since scp file service heavily depend on *nix commands, I suggest we do something like "cd ;pwd" to figure out user's home dir.
Nikita, what do you think?
Comment 1 Anna Dushistova CLA 2011-01-03 09:30:44 EST
Created attachment 185959 [details]
the fix

Nikita, could you please review?
Comment 2 Nikita Shulga CLA 2011-01-06 03:45:07 EST
Looks good to me. Thanks a lot for the fix.
Comment 3 Anna Dushistova CLA 2011-01-06 04:07:28 EST
Checked in to HEAD.
Comment 4 Martin Oberhuber CLA 2011-01-10 06:49:48 EST
Nikita reviewed the Patch but can't give a pmc_approved. Only the Tools PMC can do that, now that we're under the Tools TLP.