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 Skipped - Unit
Tests Skipped
Event Timeline
tests/sys/file/path_test.c | ||
---|---|---|
691 | Just for good measure, I'd verify that the descriptor really is an O_PATH descriptor. For example, read(pathfd) should fail. |