diff options
author | 2019-02-08 12:53:44 +0000 | |
---|---|---|
committer | 2019-02-08 12:53:44 +0000 | |
commit | 50f4c734b86d7c428eea9271c0f2e5f8fae4a85c (patch) | |
tree | ee966820b9b9b45699a917ea5523ecb43e98c6e7 /lib/libssl/ssl_transcript.c | |
parent | Fix stack info leak in execve(2). There are 2x4 bytes of padding (diff) | |
download | wireguard-openbsd-50f4c734b86d7c428eea9271c0f2e5f8fae4a85c.tar.xz wireguard-openbsd-50f4c734b86d7c428eea9271c0f2e5f8fae4a85c.zip |
Fix a race condition: do not unlink(2) a file and then open(2) it
with O_CREAT|O_EXCL; instead, always create it with a temporary name,
then rename(2) it into place atomically. For example, the race caused
failures in parallel builds that (foolishly) install the same file twice.
This patch makes the -S option a no-op,
making install(1) always behave like -S used to.
Based on a minimally different patch
from Lauri Tirkkonen <lotheac at iki dot fi>,
and including a manual page tweak from deraadt@.
OK deraadt@; "seems the right thing to do" tedu@.
Diffstat (limited to 'lib/libssl/ssl_transcript.c')
0 files changed, 0 insertions, 0 deletions