diff options
author | Ron Yorston <rmy@pobox.com> | 2024-03-07 14:34:22 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-03-07 14:34:22 +0000 |
commit | 3aef195c435771e43ccddb6226f8c98519e2b830 (patch) | |
tree | 4cb0d19a759eb80a7e2a329ad1656694adf1c864 /docs | |
parent | f53b77dcfee44156aa2ead90748dca3df4c0b710 (diff) | |
download | busybox-w32-3aef195c435771e43ccddb6226f8c98519e2b830.tar.gz busybox-w32-3aef195c435771e43ccddb6226f8c98519e2b830.tar.bz2 busybox-w32-3aef195c435771e43ccddb6226f8c98519e2b830.zip |
su: handle restricted disk drivers
Certain tools which allow disk image files and RAM disks to be
mounted were found to lack a feature used to implement realpath(3).
This resulted in a segfault in the 'su' applet when it was run in
such a virtual filesystem.
'su' uses realpath(3) to canonicalise the current directory. This
is only really required to handle network shares mapped to a drive
letter. (GitHub issue #148)
- If the call to realpath(3) fails for some reason fall back to
using the current directory determined by calling getcwd(3).
- If getcwd(3) fails simply don't pass any directory to the shell
being started by 'su'.
Also, ensure all allocated memory is freed, if required.
(GitHub issue #389)
Adds 16-32 bytes.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions