summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2016-03-30 17:03:06 +0000
committermillert <millert@openbsd.org>2016-03-30 17:03:06 +0000
commitb3282e78f90ae5ce6671617ddb84a66e1a9afc63 (patch)
treeb5fd3efffb25e26715d24624137f2b79827b0347 /sys
parentBetter support for alphas without all IEEE-mode instructions (diff)
downloadwireguard-openbsd-b3282e78f90ae5ce6671617ddb84a66e1a9afc63.tar.xz
wireguard-openbsd-b3282e78f90ae5ce6671617ddb84a66e1a9afc63.zip
The change to make mkstemp(3) require at least 6 trailing Xs broke
rdistd for directories that do not exist on the destination. Calling mkstemp(3) twice with the same format (filled in by the first mkstemp(3) call) is bogus so call chkparent() *before* mkstemp(3) instead of only on error. This costs an extra lstat(2) in the case where the directory already exists but simplifies the code and doesn't rely on undefined behavior (namely, the state of the template when mkstemp fails). OK tim@
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions