Fix for open(2) when O_TRUNC and O_??LOCK are used together.  I ran the fix by Kirk, who said it was an OK solution and pointed out two problems.
Fix for open(2) when O_TRUNC and O_??LOCK are used together.  I
ran the fix by Kirk, who said it was an OK solution and pointed
out two problems.

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars