From a2cbc39a50bec5a588417579fb54eef78beb8b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 9 Sep 2010 20:45:38 +0100 Subject: [PATCH] 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). --- tests/examples/seek/seek.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c index 633a4a2a1f..3baddccd69 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));