> Checks like the one you introduce here suffer from TOCTOU.

I don't see that.  It is not a stat, it is an fstat.  The descriptor
opened early, remains the same type through the whole operation.

Reply via email to