|
@@ -266,9 +266,15 @@ smb2_set_file_info(struct inode *inode, const char *full_path,
|
|
|
struct tcon_link *tlink;
|
|
|
int rc;
|
|
|
|
|
|
+ if ((buf->CreationTime == 0) && (buf->LastAccessTime == 0) &&
|
|
|
+ (buf->LastWriteTime == 0) && (buf->ChangeTime) &&
|
|
|
+ (buf->Attributes == 0))
|
|
|
+ return 0; /* would be a no op, no sense sending this */
|
|
|
+
|
|
|
tlink = cifs_sb_tlink(cifs_sb);
|
|
|
if (IS_ERR(tlink))
|
|
|
return PTR_ERR(tlink);
|
|
|
+
|
|
|
rc = smb2_open_op_close(xid, tlink_tcon(tlink), cifs_sb, full_path,
|
|
|
FILE_WRITE_ATTRIBUTES, FILE_OPEN, 0, buf,
|
|
|
SMB2_OP_SET_INFO);
|