]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: Fix permissions checking for O_WRONLY
authorSam Lang <sam.lang@inktank.com>
Thu, 18 Oct 2012 20:21:10 +0000 (15:21 -0500)
committerSam Lang <sam.lang@inktank.com>
Thu, 18 Oct 2012 22:16:35 +0000 (17:16 -0500)
commit58e920be97e4e2da6c01649fbaa6ef5b63028bcc
tree82453d3a320126fdb9489f6c83bfe026ef2ec63a
parent352a7e268ecf86e265523c3ddd18cfcd3a8a2509
client: Fix permissions checking for O_WRONLY

O_RDONLY is 0 in glibc, so we have to assume the
flags bits are mutually exclusive, otherwise we always
request read perms and write-only modes break.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
src/client/Inode.cc