return true;
}
-bool extract_snapshot_token(char *fname, NTTIME *twrp)
+static bool extract_snapshot_token_internal(char *fname, NTTIME *twrp, char sep)
{
const char *start = NULL;
const char *next = NULL;
size_t remaining;
bool found;
- found = find_snapshot_token(fname, '/', &start, &next, twrp);
+ found = find_snapshot_token(fname, sep, &start, &next, twrp);
if (!found) {
return false;
}
return true;
}
+bool extract_snapshot_token(char *fname, NTTIME *twrp)
+{
+ return extract_snapshot_token_internal(fname, twrp, '/');
+}
+
/*
* Take two absolute paths, figure out if "subdir" is a proper
* subdirectory of "parent". Return the component relative to the