projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86c96b4
)
[CIFS] Fix setattr of mode only (e.g. in some chmod cases) to Windows
author
Steve French
<sfrench@us.ibm.com>
Sun, 20 Nov 2005 05:04:52 +0000
(21:04 -0800)
committer
Steve French
<sfrench@us.ibm.com>
Sun, 20 Nov 2005 05:04:52 +0000
(21:04 -0800)
so it does not return EACCESS (unless server really returns that).
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/cifs/inode.c
b/fs/cifs/inode.c
index d7b85dfb0df308b306d5f10382873bf39482f67e..05b525812adb5ba238a8f2bc1138eac7f108a43c 100644
(file)
--- a/
fs/cifs/inode.c
+++ b/
fs/cifs/inode.c
@@
-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 =