diff options
author | Ron Yorston <rmy@pobox.com> | 2024-04-09 12:43:48 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-04-09 12:43:48 +0100 |
commit | 7e09f7ce4e0d99b0e54684e5cc506e1532db392f (patch) | |
tree | 547d16627fbfd152abaed2c9d48da6ef68101ecf /runit | |
parent | e1f73b64dcf047c9794f3546e3dc1b041a3660a6 (diff) | |
download | busybox-w32-7e09f7ce4e0d99b0e54684e5cc506e1532db392f.tar.gz busybox-w32-7e09f7ce4e0d99b0e54684e5cc506e1532db392f.tar.bz2 busybox-w32-7e09f7ce4e0d99b0e54684e5cc506e1532db392f.zip |
ash: move setting of current directory
The undocumented '-d' shell option is used to set the current
directory in shells started by the 'su' applet of busybox-w32.
In this case, the shell isn't a login shell.
If a login shell sets the current working directory in /etc/profile
it's possible the user may wish to override this with '-d'. This
didn't work, though, because the directory is changed before
/etc/profile is processed.
Move the changing of the directory to that specified by '-d' so it
happens after the processing of /etc/profile and ~/.profile. This
won't affect the intended use of '-d'.
(GitHub issue #403)
Diffstat (limited to 'runit')
0 files changed, 0 insertions, 0 deletions