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:
parent
c6beb71813
commit
6e58cfab98
@ -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 */
|
||||
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user