diff options
| -rw-r--r-- | fs/cifs/inode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index a807397f444e..18afe57b2461 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c | |||
| @@ -419,11 +419,11 @@ cifs_all_info_to_fattr(struct cifs_fattr *fattr, FILE_ALL_INFO *info, | |||
| 419 | } else { | 419 | } else { |
| 420 | fattr->cf_mode = S_IFREG | cifs_sb->mnt_file_mode; | 420 | fattr->cf_mode = S_IFREG | cifs_sb->mnt_file_mode; |
| 421 | fattr->cf_dtype = DT_REG; | 421 | fattr->cf_dtype = DT_REG; |
| 422 | } | ||
| 423 | 422 | ||
| 424 | /* clear write bits if ATTR_READONLY is set */ | 423 | /* clear write bits if ATTR_READONLY is set */ |
| 425 | if (fattr->cf_cifsattrs & ATTR_READONLY) | 424 | if (fattr->cf_cifsattrs & ATTR_READONLY) |
| 426 | fattr->cf_mode &= ~(S_IWUGO); | 425 | fattr->cf_mode &= ~(S_IWUGO); |
| 426 | } | ||
| 427 | 427 | ||
| 428 | fattr->cf_nlink = le32_to_cpu(info->NumberOfLinks); | 428 | fattr->cf_nlink = le32_to_cpu(info->NumberOfLinks); |
| 429 | 429 | ||
