summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_transcript.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2019-02-08 12:53:44 +0000
committerschwarze <schwarze@openbsd.org>2019-02-08 12:53:44 +0000
commit50f4c734b86d7c428eea9271c0f2e5f8fae4a85c (patch)
treeee966820b9b9b45699a917ea5523ecb43e98c6e7 /lib/libssl/ssl_transcript.c
parentFix stack info leak in execve(2). There are 2x4 bytes of padding (diff)
downloadwireguard-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