aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-08-12 11:39:12 +0100
committerRon Yorston <rmy@pobox.com>2021-08-12 11:49:56 +0100
commitda7efea0e7520f7ce8627acc9f4037a2f875c47e (patch)
tree61f27c5f9bfe600a4bde12fb464e281ba7a28500 /arch
parent602137d1637787c334a1b858e2d4e7a5feb3fb1b (diff)
downloadbusybox-w32-da7efea0e7520f7ce8627acc9f4037a2f875c47e.tar.gz
busybox-w32-da7efea0e7520f7ce8627acc9f4037a2f875c47e.tar.bz2
busybox-w32-da7efea0e7520f7ce8627acc9f4037a2f875c47e.zip
win32: better handling of nested symlinks
Our realpath(3) implementation uses xmalloc_follow_symlinks() to expand symlinks. This detects when symlinks are too deeply nested but didn't set errno, so anything calling realpath(3) was unable to say what had gone wrong. (For example, 'ls -L' or 'stat -L'.) Set errno to ELOOP. This then leads to the problem that Windows doesn't know about ELOOP so reports 'Unknown error'. Add a replacement for strerror(3) which returns a sensible message. Costs 96 bytes.
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions