goto no_snapshot;
}
if ((p > name) && (p[-1] != '/')) {
+ /* the GMT-token does not start a path-component */
goto no_snapshot;
}
q = strptime(p, GMT_FORMAT, &tm);
goto no_snapshot;
}
if ((p == name) && (q[0] == '\0')) {
+ /* the name consists of only the GMT token */
if (pstripped != NULL) {
stripped = talloc_strdup(mem_ctx, "");
if (stripped == NULL) {
return true;
}
if (q[0] != '/') {
+ /*
+ * The GMT token is either at the end of the path
+ * or it is not a complete path component, i.e. the
+ * path component continues after the gmt-token.
+ *
+ * TODO: Is this correct? Or would the GMT tag as the
+ * last component be a valid input?
+ */
goto no_snapshot;
}
q += 1;