Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
char *startp = strchr_m(smb_fname->base_name, '@');
char *endp = NULL;
struct tm tm;
+ time_t t;
NTSTATUS status;
if (twrp != NULL) {
TALLOC_FREE(smb_fname->base_name);
smb_fname->base_name = twrp_name;
+ unix_to_nt_time(&smb_fname->twrp, *twrp);
return NT_STATUS_OK;
}
return status;
}
+ tm.tm_isdst = -1;
+ t = timegm(&tm);
+ unix_to_nt_time(&smb_fname->twrp, t);
+
return NT_STATUS_OK;
}