summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorGordon Ross <gwr@nexenta.com>2019-09-10 15:45:11 -0400
committerGordon Ross <gwr@nexenta.com>2019-09-10 17:55:51 -0400
commit8a2c2d71876be7abb6367a98b63affe135ad8cc5 (patch)
treeab707eaf8eb6a67cb4a2b47d0498bcc8e274da51 /usr
parent084fd14f7c3336eb67ee283cabad2da8998b00d6 (diff)
downloadillumos-joyent-8a2c2d71876be7abb6367a98b63affe135ad8cc5.tar.gz
11673 Error setting file times with smbfs and Apple SMB server
Reviewed by: Jason King <jason.king@joyent.com> Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr')
-rw-r--r--usr/src/uts/common/fs/smbclnt/smbfs/smbfs_smb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_smb.c b/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_smb.c
index 9a44867521..73b5c62225 100644
--- a/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_smb.c
+++ b/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_smb.c
@@ -34,7 +34,7 @@
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
- * Copyright 2018 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2019 Nexenta by DDN, Inc. All rights reserved.
*/
#include <sys/param.h>
@@ -265,6 +265,7 @@ smbfs_smb_setfattr(
mb_put_uint64le(mbp, tm); /* last write time */
mb_put_uint64le(mbp, 0); /* change time */
mb_put_uint32le(mbp, attr);
+ mb_put_uint32le(mbp, 0); /* reserved */
if (SSTOVC(ssp)->vc_flags & SMBV_SMB2) {
error = smbfs_smb2_setfattr(ssp, &fhp->fh_fid2, mbp, scrp);