aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_file.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2016-03-29 09:52:15 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2016-03-29 09:52:15 +0300
commitd25903274139c9af2626f46f9d884f3e6fc81d74 (patch)
treef1446b8a5edae1b809e1cab8d89ab4c031e20109 /src/core/ngx_file.c
parent6871615528044ff3dce2bf2abdf862d1178a2c9e (diff)
downloadnginx-d25903274139c9af2626f46f9d884f3e6fc81d74.tar.gz
nginx-d25903274139c9af2626f46f9d884f3e6fc81d74.zip
Win32: replaced NGX_EXDEV with more appropriate error code.
Correct error code for NGX_EXDEV on Windows is ERROR_NOT_SAME_DEVICE, "The system cannot move the file to a different disk drive". Previously used ERROR_WRONG_DISK is about wrong diskette in the drive and is not appropriate. There is no real difference though, as MoveFile() is able to copy files between disk drives, and will fail with ERROR_ACCESS_DENIED when asked to copy directories. The ERROR_NOT_SAME_DEVICE error is only used by MoveFileEx() when called without the MOVEFILE_COPY_ALLOWED flag.
Diffstat (limited to 'src/core/ngx_file.c')
0 files changed, 0 insertions, 0 deletions