summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi/acpi.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-10-31 15:37:34 +0000
committernicm <nicm@openbsd.org>2010-10-31 15:37:34 +0000
commitcc89a13493a2e6f0303bad0b6c09b555ebcadf12 (patch)
tree071da33b9836144466c6f7f8172cc91305c4f17d /sys/dev/acpi/acpi.c
parentRemove unused bstp_list and bstp_attach. (diff)
downloadwireguard-openbsd-cc89a13493a2e6f0303bad0b6c09b555ebcadf12.tar.xz
wireguard-openbsd-cc89a13493a2e6f0303bad0b6c09b555ebcadf12.zip
init was passing a writable file descriptor into rcs_open which was then
failing to fdopen() it as readable. It doesn't need to pass in the fd at all, so just change it to pass -1 which makes cvs init work again. In fact, the fd should never need to be writable - it is only used for reading. RCS_WRITE triggers a rewrite on the file on rcs_close() but this is done by using a temporary and rename(2) (RCS_WRITE is a poor name for the flag). So while here, add a couple of comments to hopefully make it a little clearer. There is some confusion about how this is used in other places but checking those is a separate issue. with and ok tobias
Diffstat (limited to 'sys/dev/acpi/acpi.c')
0 files changed, 0 insertions, 0 deletions