From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Minor cleanup for win32stat.c. |
Date: | 2020-10-12 15:13:09 |
Message-ID: | E1kRzVd-0001mM-0h@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Minor cleanup for win32stat.c.
Use GetLastError(), rather than assuming that CreateFile() failure
must map to ENOENT. Noted by Michael Paquier.
Discussion: https://postgr.es/m/CAC+AXB0g44SbvSpC86o_1HWh8TAU2pZrMRW6tJT-dkijotx5Qg@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/fcd11329db5bca9993207f099a642a7d1cd59ff8
Modified Files
--------------
src/port/win32stat.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2020-10-12 17:31:53 | pgsql: Fix memory leak when guc.c decides a setting can't be applied no |
Previous Message | Michael Paquier | 2020-10-12 11:35:36 | pgsql: Fix compilation warning in unicode_norm.c |