pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christian Ullrich <chris@chrullrich.net>
Cc: michael.paquier@gmail.com
Cc: pgsql-hackers@postgresql.org
Subject: Re: Re: [COMMITTERS] pgsql: Sync tzload() and tzparse() APIs with IANA release tzcode2016c.
Date: Tue, 29 Mar 2016 09:48:32 -0400
Message-ID: <31133.1459259312@sss.pgh.pa.us> (raw)
In-Reply-To: <56FA4AA5.4030205@chrullrich.net>
References: <E1akeZU-0003B5-HB@gemulon.postgresql.org>
	<CAB7nPqQHd1manQ2Yn3P6L82KNMR_iGC2v5AhVgygiCOc2XpbKQ@mail.gmail.com>
	<32628.1459221714@sss.pgh.pa.us>
	<56FA0634.9020007@chrullrich.net>
	<14980.1459228179@sss.pgh.pa.us>
	<56FA28AD.3080604@chrullrich.net>
	<56FA4AA5.4030205@chrullrich.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Christian Ullrich <chris@chrullrich.net> writes:
> Anyway, I think Michael's fix is wrong. The bug is that the Win32 
> version of link() (at the bottom of zic.c) does not set errno if its 
> attempt to copy the file fails, so what dolink() puts into link_errno is 
> bogus.

Ah-hah, that explains things nicely.  The previous coding in dolink()
wasn't so dependent on link() returning a valid errno on failure.

> Patch attached.

But then, should not this code make sure that errno *always* gets set?
I'd be inclined to think we should use _dosmaperr(), too, rather than
hand-coding it.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (13+ messages)  latest in thread

Message-ID: <31133.1459259312@sss.pgh.pa.us>
Permalink:  ../31133.1459259312@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/31133.1459259312@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, chris@chrullrich.net, michael.paquier@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Sync tzload() and tzparse() APIs with IANA release tzcode2016c.
  In-Reply-To: <31133.1459259312@sss.pgh.pa.us>
  References: <E1akeZU-0003B5-HB@gemulon.postgresql.org> <CAB7nPqQHd1manQ2Yn3P6L82KNMR_iGC2v5AhVgygiCOc2XpbKQ@mail.gmail.com> <32628.1459221714@sss.pgh.pa.us> <56FA0634.9020007@chrullrich.net> <14980.1459228179@sss.pgh.pa.us> <56FA28AD.3080604@chrullrich.net> <56FA4AA5.4030205@chrullrich.net> <31133.1459259312@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox