Set NIRES_EMPTYPATH earlies, to have use of EMPTYPATH recorded even if we are going to return error. When namei_setup() refused to accept dirfd, which is not vnode type, and indicated by ENOTDIR error return, fall back to kern_fstat(dirfd).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
For instance, fstatat(pipefd, "", &stat, AT_EMPTY_PATH) would do it. I have no idea why an app would want to call fstat(pipefd) this way, but this is what Dmitry' test case does, adopted from some Linux trace.