aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-09-29 10:14:47 +0900
committerMichael Paquier <michael@paquier.xyz>2022-09-29 10:14:47 +0900
commit2beae72746e6b762cb335ec4fff87e5407b3096c (patch)
treed3ee72e654450681f6560676470f8d0c895717e3 /src
parentb6d8a60aba322678585ebe11dab072a37ac32905 (diff)
downloadpostgresql-2beae72746e6b762cb335ec4fff87e5407b3096c.tar.gz
postgresql-2beae72746e6b762cb335ec4fff87e5407b3096c.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/port/win32error.c3
1 files changed, 3 insertions, 0 deletions
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
}
};