Author vstinner
Recipients izbyshev, koobs, rudolphf, vstinner, Владислав Ярмак
Date 2019-04-17.16:36:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1555518979.68.0.288121213319.issue32849@roundup.psfhosted.org>
In-reply-to
Content
Thanks Rudolph Froger for the bug report: the issue is now fixed in 3.7 and master (future Python 3.8) branches. Sorry for the delay.

--

Alexey Izbyshev wrote PR 5773 to also use fstat() on Linux.

I chose to merge my PR 12852 which is more conservative: it keeps dup() on Linux. I'm not sure why exactly, but I recall that the author of the function, Antoine Pitrou, wanted to use dup() on Linux.

I'm not convinced by the O_PATH issue on Linux (described above), so I merged my conservative change instead.

Later, we can still move to fstat() on Linux as well if someone comes with a more concrete example against dup().
History
Date User Action Args
2019-04-17 16:36:19vstinnersetrecipients: + vstinner, koobs, izbyshev, rudolphf, Владислав Ярмак
2019-04-17 16:36:19vstinnersetmessageid: <1555518979.68.0.288121213319.issue32849@roundup.psfhosted.org>
2019-04-17 16:36:19vstinnerlinkissue32849 messages
2019-04-17 16:36:19vstinnercreate