Michael Paquier <michael@paquier.xyz> writes:
> Why are we forcing errno=ENOENT here? Wouldn't it be correct to use
> _dosmaperr(GetLastError()) to get the correct errno?
Fair question. Juan, was there some good reason not to look at
GetLastError() in this step?
regards, tom lane