Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aku23-00019b-Ff for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2016 13:50:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aku23-000704-2J for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2016 13:50:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aku0f-00044r-Pv for pgsql-hackers@postgresql.org; Tue, 29 Mar 2016 13:48:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aku0b-0003M4-UC for pgsql-hackers@postgresql.org; Tue, 29 Mar 2016 13:48:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u2TDmWh4031134; Tue, 29 Mar 2016 09:48:32 -0400 From: Tom Lane To: Christian Ullrich cc: michael.paquier@gmail.com, pgsql-hackers@postgresql.org Subject: Re: Re: [COMMITTERS] pgsql: Sync tzload() and tzparse() APIs with IANA release tzcode2016c. In-reply-to: <56FA4AA5.4030205@chrullrich.net> References: <32628.1459221714@sss.pgh.pa.us> <56FA0634.9020007@chrullrich.net> <14980.1459228179@sss.pgh.pa.us> <56FA28AD.3080604@chrullrich.net> <56FA4AA5.4030205@chrullrich.net> Comments: In-reply-to Christian Ullrich message dated "Tue, 29 Mar 2016 11:28:05 +0200" Date: Tue, 29 Mar 2016 09:48:32 -0400 Message-ID: <31133.1459259312@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Christian Ullrich 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