From a5d4f64c555ec1484124181f0e91341bbf620c63 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Thu, 9 Jul 2009 01:46:44 -0400 Subject: [PATCH] --- yaml --- r: 155158 b: refs/heads/master c: d0c280d26de9422c9c943f8f486b9830cd9bea70 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/cifs/inode.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 5aa00ec3f401..28367e73bf65 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: aeaaf253c4dee7ff9af2f3f0595f3bb66964e944 +refs/heads/master: d0c280d26de9422c9c943f8f486b9830cd9bea70 diff --git a/trunk/fs/cifs/inode.c b/trunk/fs/cifs/inode.c index a807397f444e..18afe57b2461 100644 --- a/trunk/fs/cifs/inode.c +++ b/trunk/fs/cifs/inode.c @@ -419,11 +419,11 @@ cifs_all_info_to_fattr(struct cifs_fattr *fattr, FILE_ALL_INFO *info, } else { fattr->cf_mode = S_IFREG | cifs_sb->mnt_file_mode; fattr->cf_dtype = DT_REG; - } - /* clear write bits if ATTR_READONLY is set */ - if (fattr->cf_cifsattrs & ATTR_READONLY) - fattr->cf_mode &= ~(S_IWUGO); + /* clear write bits if ATTR_READONLY is set */ + if (fattr->cf_cifsattrs & ATTR_READONLY) + fattr->cf_mode &= ~(S_IWUGO); + } fattr->cf_nlink = le32_to_cpu(info->NumberOfLinks);