sh: Read .profile from the home directory (or / if HOME is not set).
In most cases, login shells are started from the home directory, but not in all, such as xterm -ls. This commit depends on r222957 for read_profile() performing parameter expansion. PR: bin/50569
This commit is contained in:
parent
bb6d0c6c0c
commit
c5f4fe06fe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223005
@ -150,7 +150,7 @@ main(int argc, char *argv[])
|
|||||||
state1:
|
state1:
|
||||||
state = 2;
|
state = 2;
|
||||||
if (privileged == 0)
|
if (privileged == 0)
|
||||||
read_profile(".profile");
|
read_profile("${HOME-}/.profile");
|
||||||
else
|
else
|
||||||
read_profile("/etc/suid_profile");
|
read_profile("/etc/suid_profile");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user