ash: read $HOME/.profile instead of $(pwd)/.profile
authorStefan Hellermann <stefan@the2masters.de>
Fri, 15 Mar 2013 01:45:50 +0000 (02:45 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 15 Mar 2013 01:45:50 +0000 (02:45 +0100)
commit4ef1439c593daadeffb3f00eaaf49e190a3039e1
tree1e2798e8de90e64e90fae17768974010d0e8da9a
parentaeb717aa5e8a5ae650a283306091a2872628cffd
ash: read $HOME/.profile instead of $(pwd)/.profile

ash --login should read ~/.profile instead of .profile in the current
directory. I noticed it while trying to figure out why /root/.profile
is only read sometimes.

function                                             old     new   delta
ash_main                                            1374    1398     +24

Signed-off-by: Stefan Hellermann <stefan@the2masters.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c