summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/gettimeofday.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-02-24 20:53:32 +0000
committerjilles <jilles@FreeBSD.org>2013-02-24 20:53:32 +0000
commitb4ce52f66cd37c76a07d049fbc0d62864c8c54a2 (patch)
tree950cbdd6a0d369f97bad1e978ed1573b7b32eff9 /lib/libc/sys/gettimeofday.c
parent60edaad227012ae225dd29f164d2612342298cfe (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud