postgres.git / summary / log / commit / refs
commit 2beae72746e6b762cb335ec4fff87e5407b3096c
Author: Michael Paquier <michael@paquier.xyz>
Date: Thu Sep 29 01:14:47 2022 +0000
First released in: 16.0
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
src/port/win32error.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/port/win32error.c b/src/port/win32error.c
index fca867ba3d5..a78d3238271 100644
--- a/src/port/win32error.c
+++ b/src/port/win32error.c
@@ -164,6 +164,9 @@ static const struct
},
{
ERROR_DELETE_PENDING, ENOENT
+ },
+ {
+ ERROR_INVALID_NAME, ENOENT
}
};
[parent: b6d8a60aba32]