[Cbe-oss-dev] [patch 08/18] petitboot: Add URL test to resolve_path
Jeremy Kerr
jk at ozlabs.org
Mon Mar 30 19:34:50 EST 2009
Geoff,
> + /* test for urls */
> +
> + if (!strncasecmp(path, s_file, sizeof(s_file) - 1))
> + path += sizeof(s_file) - 1;
> + else if (strstr(path, "://"))
> + return talloc_strdup(alloc_ctx, path);
> +
> sep = strchr(path, ':');
> if (!sep) {
> devpath = mountpoint_for_device(current_dev);
We're going to run into problems with this 'sep' test there, we should
probably only do that chunk of code when it's not a URL.
Cheers,
Jeremy
More information about the cbe-oss-dev
mailing list