1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

s3: add init_smb_file_time()

BUG: https://bugzilla.samba.org/show_bug.cgi?id=7771

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2019-12-02 16:21:42 +01:00 committed by Jeremy Allison
parent c6beb71813
commit 6e58cfab98
2 changed files with 11 additions and 0 deletions

View File

@ -1250,6 +1250,7 @@ NTSTATUS vfs_streaminfo(connection_struct *conn,
TALLOC_CTX *mem_ctx,
unsigned int *num_streams,
struct stream_struct **streams);
void init_smb_file_time(struct smb_file_time *ft);
/* The following definitions come from smbd/avahi_register.c */

View File

@ -1451,6 +1451,16 @@ NTSTATUS vfs_stat_fsp(files_struct *fsp)
return NT_STATUS_OK;
}
void init_smb_file_time(struct smb_file_time *ft)
{
*ft = (struct smb_file_time) {
.atime = make_omit_timespec(),
.ctime = make_omit_timespec(),
.mtime = make_omit_timespec(),
.create_time = make_omit_timespec()
};
}
/**
* Initialize num_streams and streams, then call VFS op streaminfo
*/