@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;
DBG_DEBUG("GMT token in %s stripped to %s\n",
name, _stripped_buf);
}
- *_timestamp = timestamp;
+ *_timestamp = nt_time_to_unix(smb_fname->twrp);
return 0;
no_snapshot:
*_timestamp = 0;