Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdbce9c8 authored by Steve French's avatar Steve French
Browse files

[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: default avatarSteve French <sfrench@us.ibm.com>
parent 86c96b4b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 =