git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b6d8a60)
Map ERROR_INVALID_NAME to ENOENT in mapping table of win32error.c
2022年9月29日 01:14:47 +0000 (10:14 +0900)
2022年9月29日 01:14:47 +0000 (10:14 +0900)
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


diff --git a/src/port/win32error.c b/src/port/win32error.c
index fca867ba3d56008cd73fdfe1b29d923d0ef766bf..a78d323827179577f64ef299ac8f9947b794535f 100644 (file)
--- 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
}
};
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /