pgsql: Map ERROR_INVALID_NAME to ENOENT in mapping table of win32error.

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Map ERROR_INVALID_NAME to ENOENT in mapping table of win32error.
Date: 2022-09-29 01:14:59
Message-ID: E1odi8h-0004Er-2n@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2beae72746e6b762cb335ec4fff87e5407b3096c

Modified Files
--------------
src/port/win32error.c | 3 +++
1 file changed, 3 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2022-09-29 01:49:48 pgsql: meson: pg_regress: Define a HOST_TUPLE sufficient to make result
Previous Message Thomas Munro 2022-09-29 00:34:04 pgsql: Restore pg_pread and friends.