Re: libpq minor TOCTOU violation

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: Andreas Karlsson <andreas@proxel.se>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-08-16T04:48:15Z
Lists: 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




Commits

  1. libpq: Fix minor TOCTOU violation