Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
open(2) must always include one of O_RDONLY, O_WRONLY, or O_RDWR. No need for any O_APPEND special case. Passing O_WRONLY|O_RDWR is undefined according to the man page, but the Linux VFS interprets this as O_RDWR, so we'll do the same. This fixes open(2) with flags O_RDWR|O_APPEND, which was incorrectly being translated to readonly. Reported-by: Fyodor Ustinov <[email protected]> Signed-off-by: Sage Weil <[email protected]>
- Loading branch information