diff options
author | 2000-04-21 17:06:13 +0000 | |
---|---|---|
committer | 2000-04-21 17:06:13 +0000 | |
commit | 873dbcf8aa81282a0064f9bde6c68131131a7aa7 (patch) | |
tree | f3ea8f06e3e5bd7ec91d039ed8f7972bd848daec /lib/libc | |
parent | see if there is any meaning under curproc before using &proc0 in vfs_syncwait(); from art@ (diff) | |
download | wireguard-openbsd-873dbcf8aa81282a0064f9bde6c68131131a7aa7.tar.xz wireguard-openbsd-873dbcf8aa81282a0064f9bde6c68131131a7aa7.zip |
Remove the races so that this is safe to run anytime. We open
/var/tmp/vi.recover to get an fd and user O_NOFOLLOW to following a symlink.
Once we have a file handle we can use it to safely chdir to the right
place and form then on do operations relative to ".". Also restrict
to root.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions