提交 cdbce9c8 编写于 作者: S Steve French

[CIFS] Fix setattr of mode only (e.g. in some chmod cases) to Windows

so it does not return EACCESS (unless server really returns that).
Signed-off-by: NSteve French <sfrench@us.ibm.com>
上级 86c96b4b
......@@ -1219,6 +1219,7 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs)
cifs_sb->mnt_cifs_flags &
CIFS_MOUNT_MAP_SPECIAL_CHR);
else if (attrs->ia_valid & ATTR_MODE) {
rc = 0;
if ((mode & S_IWUGO) == 0) /* not writeable */ {
if ((cifsInode->cifsAttrs & ATTR_READONLY) == 0)
time_buf.Attributes =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册