diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 4bb0f9a54c8..378c5d04918 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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 */ diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index dbf42cd56f4..fdae4922fe8 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -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 */