summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/ssl/d1_lib.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2012-01-05 22:48:52 +0000
committerschwarze <schwarze@openbsd.org>2012-01-05 22:48:52 +0000
commit862132a7d1d230f8e6dc940043c3040d07147740 (patch)
tree8915f8547b96a7666cecd5d93f194393337d58c1 /lib/libssl/src/ssl/d1_lib.c
parentimprove EXAMPLES; feedback and ok jmc@ (diff)
downloadwireguard-openbsd-862132a7d1d230f8e6dc940043c3040d07147740.tar.xz
wireguard-openbsd-862132a7d1d230f8e6dc940043c3040d07147740.zip
Do not truncate the production database when starting to build a new one,
because that would break apropos(1) during the build, and if the build fails, you would be left without any database at all. Instead, build the database in temporary files in the same directory and rename(2) them into place when they are ready. Suggested by deraadt@. There is still a tiny race between the two rename(2)s; if that's a problem, we can solve it later using locking. Put this in now such that we can move on.
Diffstat (limited to 'lib/libssl/src/ssl/d1_lib.c')
0 files changed, 0 insertions, 0 deletions