diff options
author | Jeff Layton <jlayton@redhat.com> | 2008-05-22 09:31:40 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2008-05-23 18:17:09 +0000 |
commit | 4468eb3fd102cad559e51594a01cbc65b994d264 (patch) | |
tree | 247fe6ab216b047e3f48aee07e845b17d2447ed7 /drivers/sh | |
parent | aaa9bbe039febf1d3a0f3a374deea0680d9f5758 (diff) |
on non-posix shares, clear write bits in mode when ATTR_READONLY is set
When mounting a share with posix extensions disabled,
cifs_get_inode_info turns off all the write bits in the mode for regular
files if ATTR_READONLY is set. Directories and other inode types,
however, can also have ATTR_READONLY set, but the mode gives no
indication of this.
This patch makes this apply to other inode types besides regular files.
It also cleans up how modes are set in cifs_get_inode_info for both the
"normal" and "dynperm" cases.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'drivers/sh')
0 files changed, 0 insertions, 0 deletions