How about O_CREAT_DIRECTORY?
How about O_CREAT_DIRECTORY?
Posted Jul 30, 2026 14:16 UTC (Thu) by corbet (editor, #1)In reply to: How about O_CREAT_DIRECTORY? by davecb
Parent article: Reconsidering O_CREAT|O_DIRECTORY
One problem, as always, is that open() does not check its flags for validity, so it is almost impossible to add new ones in a safe way.
Besides, we would want O_CREATE_DIRECTORY, it's not the 1970s anymore :)
