HomeFreeBSD

libc/opendir: Improve behaviour of union uniquifier:
rS247236Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

libc/opendir: Improve behaviour of union uniquifier:

  • Reopen the directory using openat(fd, ".", ...) instead of opening the pathname again. This fixes a race condition where the meaning of the pathname changes and allows a reopen with fdopendir().
  • Always reopen the directory for union stacks, not only when DTF_REWIND is passed. Applications should be able to fchdir(dirfd(dir)) and *at(dirfd(dir), ...). DTF_REWIND now does nothing.

Details

Provenance
jillesAuthored on
Parents
rS247235: Actually check shebang
Branches
Unknown
Tags
Unknown