@GMT tokens are still validated and stripped, but the previous version timestamp
is taken from the struct smb_filename twrp member.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
size_t rest_len, dst_len;
ptrdiff_t len_before_gmt;
+ if (smb_fname->twrp == 0) {
+ goto no_snapshot;
+ }
+
p = strstr_m(name, "@GMT-");
if (p == NULL) {
goto no_snapshot;
stripped[dst_len] = '\0';
*pstripped = stripped;
}
- *ptimestamp = timestamp;
+ *ptimestamp = nt_time_to_unix(smb_fname->twrp);
return true;
no_snapshot:
*ptimestamp = 0;