ecryptfs: fixed testing of file descriptor flags
authorRoberto Sassu <roberto.sassu@polito.it>
Wed, 3 Nov 2010 10:11:34 +0000 (11:11 +0100)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Mon, 17 Jan 2011 17:24:43 +0000 (11:24 -0600)
This patch replaces the check (lower_file->f_flags & O_RDONLY) with
((lower_file & O_ACCMODE) == O_RDONLY).

Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>

No differences found