Map ERROR_INVALID_NAME to ENOENT in mapping table of win32error.c

This error can be reached when sending an incorrect file name to open()
on Windows, resulting in a confusing errno reported.  This has been seen
in the development of a different patch by the same author.

Author: Bharath Rupireddy
Discussion: https://postgr.es/m/CALj2ACWet-b8Juba0DiXwfGCyyOcohzwksahE5ebB9rcbLZKCQ@mail.gmail.com
This commit is contained in:
Michael Paquier 2022-09-29 10:14:47 +09:00
parent b6d8a60aba
commit 2beae72746
1 changed files with 3 additions and 0 deletions

View File

@ -164,6 +164,9 @@ static const struct
},
{
ERROR_DELETE_PENDING, ENOENT
},
{
ERROR_INVALID_NAME, ENOENT
}
};