Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331249 - [scp] incorrect home while logging in as root
Summary: [scp] incorrect home while logging in as root
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.3 M5   Edit
Assignee: Anna Dushistova CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-26 16:32 EST by Anna Dushistova CLA
Modified: 2011-01-10 06:49 EST (History)
1 user (show)

See Also:


Attachments
the fix (2.57 KB, patch)
2011-01-03 09:30 EST, Anna Dushistova CLA
mober.at+eclipse: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.