s3:smbd add missing VolumeCreationTime to FileFsVolumeInformation
authorChristian Ambach <ambi@samba.org>
Sat, 7 May 2022 18:37:34 +0000 (20:37 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 6 Jun 2022 16:46:35 +0000 (16:46 +0000)
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_trans2.c

index ba54c5ada6e0cf08f6228662e8cc688003d9041f..f4cc0b98b9260c0831ecc9b4c06ed68d664f0971 100644 (file)
@@ -2296,7 +2296,8 @@ cBytesSector=%u, cUnitTotal=%u, cUnitAvail=%d\n", (unsigned int)st.st_ex_dev, (u
 
                case SMB_QUERY_FS_VOLUME_INFO:      
                case SMB_FS_VOLUME_INFORMATION:
-
+                       put_long_date_full_timespec(TIMESTAMP_SET_NT_OR_BETTER,
+                                                   pdata, &st.st_ex_btime);
                        /* 
                         * Add volume serial number - hash of a combination of
                         * the called hostname and the service name.