dect
/
linux-2.6
Archived
13
0
Fork 0

[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: Steve French <sfrench@us.ibm.com>
This commit is contained in:
Steve French 2005-11-19 21:04:52 -08:00
parent 86c96b4bb7
commit cdbce9c87e
1 changed files with 1 additions and 0 deletions

View File

@ -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 =