There is no reason to disallow creating the file opened for path.
More, it might be a useful feature together with O_EXCL.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
tests/sys/file/path_test.c | ||
---|---|---|
691 ↗ | (On Diff #148843) | Just for good measure, I'd verify that the descriptor really is an O_PATH descriptor. For example, read(pathfd) should fail. |