const char *parent_dir,
bool newfile);
int file_ntimes(connection_struct *conn, const char *fname,
- struct smb_file_time *ft);
+ struct smb_file_time *ft, const SMB_STRUCT_STAT *psbuf);
bool set_sticky_write_time_path(connection_struct *conn, const char *fname,
struct file_id fileid, const struct timespec mtime);
bool set_sticky_write_time_fsp(struct files_struct *fsp, const struct timespec mtime);
*******************************************************************/
int file_ntimes(connection_struct *conn, const char *fname,
- struct smb_file_time *ft)
+ struct smb_file_time *ft, const SMB_STRUCT_STAT *psbuf)
{
struct smb_filename *smb_fname = NULL;
NTSTATUS status;
(as DOS does).
*/
- status = create_synthetic_smb_fname_split(talloc_tos(), fname, NULL,
+ status = create_synthetic_smb_fname_split(talloc_tos(), fname, psbuf,
&smb_fname);
if (!NT_STATUS_IS_OK(status)) {
fname = fsp->base_fsp->fsp_name;
}
- if(file_ntimes(conn, fname, ft)!=0) {
+ if(file_ntimes(conn, fname, ft, psbuf)!=0) {
return map_nt_error_from_unix(errno);
}
notify_fname(conn, NOTIFY_ACTION_MODIFIED, action, fname);