Re: Telling O_WRONLY and O_RDWR apart

John Ogness <[email protected]>
Newsgroups gmane.linux.dazuko.devel
Message-ID <[email protected]>
Sami Tikka wrote:
> Hi! I noticed that dazuko 2.0.6 running on Linux 2.6 cannot tell if file
> was opened O_WRONLY or O_RDWR, they are both reported as O_WRONLY.
> 
> I guess the problem happened because the open flags are not bit masks
> like the MAY_* flags passed to inode_permission callback.
> 
> The patch below seems to correct open flag reporting.

Thanks! These changes have been checked into CVS.

John Ogness

-- 
Dazuko Maintainer
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.