diff options
author | Ron Yorston <rmy@pobox.com> | 2024-01-04 07:59:49 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-01-04 07:59:49 +0000 |
commit | 0bbb4f442b862190fbddc4603f786787ba5a09f0 (patch) | |
tree | 6f20a55154a41005fc43ba49fc1c074eb6651d2b /arch | |
parent | 9197a9ef026e3d57d291f05ea6f91956d152d116 (diff) | |
download | busybox-w32-0bbb4f442b862190fbddc4603f786787ba5a09f0.tar.gz busybox-w32-0bbb4f442b862190fbddc4603f786787ba5a09f0.tar.bz2 busybox-w32-0bbb4f442b862190fbddc4603f786787ba5a09f0.zip |
win32: fix detection of directories in stat(2)
The implementation of stat(2) detected whether a pathname ending
with a directory separator was valid by checking for the error
code ERROR_INVALID_NAME when GetFileAttributesExA() failed.
This works if the path refers to an actual disk but not if it's on
a share. In the latter case the glob '*/' incorrectly returned files
that weren't directories.
Add code to handle this case.
Costs 16-32 bytes.
(GitHub issue #381)
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions