mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
[CIFS] update DOS attributes in cifsInode if we successfully changed them
Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
parent
391e575556
commit
d388908ec4
1 changed files with 4 additions and 0 deletions
|
@ -752,6 +752,9 @@ cifs_set_file_info(struct inode *inode, struct iattr *attrs, int xid,
|
|||
|
||||
set_via_filehandle:
|
||||
rc = CIFSSMBSetFileInfo(xid, pTcon, &info_buf, netfid, netpid);
|
||||
if (!rc)
|
||||
cifsInode->cifsAttrs = dosattr;
|
||||
|
||||
if (open_file == NULL)
|
||||
CIFSSMBClose(xid, pTcon, netfid);
|
||||
else
|
||||
|
@ -902,6 +905,7 @@ psx_del_no_retry:
|
|||
if (rc == 0)
|
||||
drop_nlink(inode);
|
||||
}
|
||||
cifsInode->cifsAttrs = dosattr;
|
||||
}
|
||||
out_reval:
|
||||
if (inode) {
|
||||
|
|
Loading…
Reference in a new issue