diff options
author | 2010-10-31 15:37:34 +0000 | |
---|---|---|
committer | 2010-10-31 15:37:34 +0000 | |
commit | cc89a13493a2e6f0303bad0b6c09b555ebcadf12 (patch) | |
tree | 071da33b9836144466c6f7f8172cc91305c4f17d /sys/dev/acpi/acpi.c | |
parent | Remove unused bstp_list and bstp_attach. (diff) | |
download | wireguard-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