The curious case of O_DIRECTORY|O_CREAT
The curious case of O_DIRECTORY|O_CREAT
Posted Mar 28, 2023 2:03 UTC (Tue) by josh (subscriber, #17465)Parent article: The curious case of O_DIRECTORY|O_CREAT
> The expectation often is that this particular combination would create and open a directory.
Given the indication that the behavior of this combination can have its behavior changed/fixed, is there some strong reason *not* to make it successfully create a directory? That seems like *useful behavior*: create a directory and atomically return an fd for that directory.
Would that break some existing software? It doesn't sound like it would, given
> "I think we can pretty much assume that there are no actual users of it, and we might as well clean up the semantics properly"