diff options
author | 2016-03-30 17:03:06 +0000 | |
---|---|---|
committer | 2016-03-30 17:03:06 +0000 | |
commit | b3282e78f90ae5ce6671617ddb84a66e1a9afc63 (patch) | |
tree | b5fd3efffb25e26715d24624137f2b79827b0347 /sys/dev/i2c/ihidev.c | |
parent | Better support for alphas without all IEEE-mode instructions (diff) | |
download | wireguard-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/dev/i2c/ihidev.c')
0 files changed, 0 insertions, 0 deletions