Re: libpq minor TOCTOU violation

Andreas Karlsson <andreas@proxel.se>

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

Andreas



Commits

  1. libpq: Fix minor TOCTOU violation