commit | 0abe1169470571c473ee720c35fe5b3481c46c46 | [log] [tgz] |
---|---|---|
author | Roberto Sassu <roberto.sassu@polito.it> | Wed Nov 03 11:11:34 2010 +0100 |
committer | Tyler Hicks <tyhicks@linux.vnet.ibm.com> | Mon Jan 17 11:24:43 2011 -0600 |
tree | 3261e72681db07a04a56f31af0edb536b9b7a5e2 | |
parent | 27992890b02d340198a3a22fc210d13684a41564 [diff] |
ecryptfs: fixed testing of file descriptor flags 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>