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

From Andreas Karlsson
Subject Re: libpq minor TOCTOU violation
Date
Msg-id 6c9c47ed-5978-45e5-98f3-30200ead73ef@proxel.se
Whole thread Raw
In response to libpq minor TOCTOU violation  (Peter Eisentraut <peter@eisentraut.org>)
List 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



pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Remaining dependency on setlocale()
Next
From: Alexander Korotkov
Date:
Subject: Re: collect_corrupt_items_vacuum.patch