Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d388908e authored by Steve French's avatar Steve French
Browse files

[CIFS] update DOS attributes in cifsInode if we successfully changed them

parent 391e5755
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 @@ int cifs_unlink(struct inode *dir, struct dentry *dentry)
			if (rc == 0)
				drop_nlink(inode);
		}
		cifsInode->cifsAttrs = dosattr;
	}
out_reval:
	if (inode) {