aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-10-25 09:11:34 +0100
committerRon Yorston <rmy@pobox.com>2023-10-25 09:11:34 +0100
commit4e21b98252d61c524048f6b1d561aba522ed5baa (patch)
treecf428989f83f70feee3cae92a7f08ff37817e984 /arch
parente0fd5d3c112df92b3d104b519ed09770f24d2ecf (diff)
downloadbusybox-w32-4e21b98252d61c524048f6b1d561aba522ed5baa.tar.gz
busybox-w32-4e21b98252d61c524048f6b1d561aba522ed5baa.tar.bz2
busybox-w32-4e21b98252d61c524048f6b1d561aba522ed5baa.zip
lineedit: normalise HOME for use in prompt
The code to replace the user's home directory with '~' in the prompt didn't allow for the possibility of the HOME environment variable having backslashes in the path. Convert backslashes to forward slashes in HOME. This isn't necessary if the home directory is obtained from getpwuid(3) as it's already converted there. Adds 24-32 bytes.
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions