tests: fix passing of URIs containing '*' and '?' to the seek example

Only do wildcard expansion (why?!) on things that look like local
file paths. Fixes passing of URIs containing '*' and '?' (see #629212).
This commit is contained in:
Tim-Philipp Müller 2010-09-09 20:45:38 +01:00
parent 4e379a4e59
commit a2cbc39a50

View file

@ -2661,8 +2661,9 @@ main (int argc, char **argv)
pipeline_spec = argv[2];
if (g_strrstr (pipeline_spec, "*") != NULL ||
g_strrstr (pipeline_spec, "?") != NULL) {
if (g_path_is_absolute (pipeline_spec) &&
(g_strrstr (pipeline_spec, "*") != NULL ||
g_strrstr (pipeline_spec, "?") != NULL)) {
paths = handle_wildcards (pipeline_spec);
} else {
paths = g_list_prepend (paths, g_strdup (pipeline_spec));