]> git.kaiwu.me - nginx.git/commit
Win32: removed attempt to use a drive letter in ngx_fs_bsize().
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 23 Feb 2023 17:50:00 +0000 (20:50 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 23 Feb 2023 17:50:00 +0000 (20:50 +0300)
commit6c5fe80bc69b12cc2bd0e8ed7bc67b240795f66b
tree90418a5614716baa21e6dc8e644c44703ae0c769
parent2062ddef3989525e22445b1965220ffaf8e161c9
Win32: removed attempt to use a drive letter in ngx_fs_bsize().

Just a drive letter might not correctly represent file system being used,
notably when using symlinks (as created by "mklink /d").  As such, instead
of trying to call GetDiskFreeSpace() with just a drive letter, we now always
use GetDiskFreeSpace() with full path.

Further, it looks like the code to use just a drive letter never worked,
since it tried to test name[2] instead of name[1] to be ':'.
src/os/win32/ngx_files.c