diff options
author | Sage Weil <sage@newdream.net> | 2011-07-19 20:25:04 +0200 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-07-19 20:25:04 +0200 |
commit | 38be7a79f7c99dd01425f19ef6cf744878b6a94b (patch) | |
tree | 5f31b24e4ecca2564ed01b212e3193ba7b2ed4b6 /net/bluetooth/l2cap_core.c | |
parent | ceph: fix sync and dio writes across stripe boundaries (diff) | |
download | linux-38be7a79f7c99dd01425f19ef6cf744878b6a94b.tar.xz linux-38be7a79f7c99dd01425f19ef6cf744878b6a94b.zip |
ceph: fix file mode calculation
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 <ufm@ufm.su>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
0 files changed, 0 insertions, 0 deletions