aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-04-09 12:43:48 +0100
committerRon Yorston <rmy@pobox.com>2024-04-09 12:43:48 +0100
commit7e09f7ce4e0d99b0e54684e5cc506e1532db392f (patch)
tree547d16627fbfd152abaed2c9d48da6ef68101ecf /win32
parente1f73b64dcf047c9794f3546e3dc1b041a3660a6 (diff)
downloadbusybox-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 'win32')
0 files changed, 0 insertions, 0 deletions