diff options
author | jilles <jilles@FreeBSD.org> | 2013-02-24 20:53:32 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-02-24 20:53:32 +0000 |
commit | b4ce52f66cd37c76a07d049fbc0d62864c8c54a2 (patch) | |
tree | 950cbdd6a0d369f97bad1e978ed1573b7b32eff9 /lib/libc/sys/gettimeofday.c | |
parent | 60edaad227012ae225dd29f164d2612342298cfe (diff) | |
download | FreeBSD-src-b4ce52f66cd37c76a07d049fbc0d62864c8c54a2.zip FreeBSD-src-b4ce52f66cd37c76a07d049fbc0d62864c8c54a2.tar.gz |
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.
Diffstat (limited to 'lib/libc/sys/gettimeofday.c')
0 files changed, 0 insertions, 0 deletions