diff options
author | Ron Yorston <rmy@pobox.com> | 2023-01-18 11:09:13 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-01-18 11:09:13 +0000 |
commit | 4c92ce9e14703a3100f1aa9fd90bc3864d9e856b (patch) | |
tree | 284eb2d1a341af35e10054ddc98fa6bc020fd197 /init | |
parent | dbd187697d1265d345e3e3e8b302a88b04592cc2 (diff) | |
download | busybox-w32-4c92ce9e14703a3100f1aa9fd90bc3864d9e856b.tar.gz busybox-w32-4c92ce9e14703a3100f1aa9fd90bc3864d9e856b.tar.bz2 busybox-w32-4c92ce9e14703a3100f1aa9fd90bc3864d9e856b.zip |
win32: more minor improvements to stat(2)
The previous commit incorrectly stated that preventing the access
time of a file from being updated only required it to be opened
with GENERIC_READ access. In fact, even though we don't want to
update the access time, SetFileTime() also requires the file to
have been opened with FILE_WRITE_ATTRIBUTES access.
There's no need to explicitly avoid device files when checking
for execute mode: since device files are now 'character special'
they are excluded by the test that the file is 'regular'.
Device files should be excluded when trying to obtain extra file
data using GetFileInformationByHandle(). It shouldn't be possible
for CreateFile() to open then, so there's no point in trying.
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions