Re: libpq minor TOCTOU violation - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: libpq minor TOCTOU violation
Date
Msg-id d48066a4-821d-4ec9-a520-d14670f2c1cd@eisentraut.org
Whole thread Raw
In response to Re: libpq minor TOCTOU violation  (Andreas Karlsson <andreas@proxel.se>)
List pgsql-hackers
On 14.08.24 03:12, Andreas Karlsson wrote:
> On 8/10/24 9:10 AM, Peter Eisentraut wrote:
>> Thoughts?
> 
> I like it. Not because of the security issue but mainly because it is 
> more correct to do it this way. Plus the old code running stat() on 
> Windows also made little sense.
> 
> I think this simple fix can be committed.

committed




pgsql-hackers by date:

Previous
From: Yugo Nagata
Date:
Subject: Re: define PG_REPLSLOT_DIR
Next
From: Steven Niu
Date:
Subject: Re: [Patch] remove duplicated smgrclose