summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-09-09 20:45:38 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-09-09 20:52:17 +0100
commita2cbc39a50bec5a588417579fb54eef78beb8b08 (patch)
treee6bfcb85b58625e593b7b0a306f3f673a5100830
parent4e379a4e5976b2ed2504d898bfa362de4923a93e (diff)
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).
-rw-r--r--tests/examples/seek/seek.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c
index 633a4a2a1..3baddccd6 100644
--- a/tests/examples/seek/seek.c
+++ b/tests/examples/seek/seek.c
@@ -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));