All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xen.org
Subject: Re: [PATCH OSSTEST v7 01/15] TestSupport: Add helper to fetch a URL on a host
Date: Mon, 6 Jul 2015 16:03:21 +0100	[thread overview]
Message-ID: <1436195001.25646.111.camel@citrix.com> (raw)
In-Reply-To: <21914.38199.776194.101851@mariner.uk.xensource.com>

On Mon, 2015-07-06 at 15:48 +0100, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH OSSTEST v7 01/15] TestSupport: Add helper to fetch a URL on a host"):
> > Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> > ---
> > v7: Quote $url and $path, switch to a heredoc to avoid resulting over
> >     long line
> ...
> 
> Last time I wrote:
> 
>   Do we care that this will break badly if the url contains shell
>   metacharacters ?  I think we may do.
> 
> but:
> 
> > +    $useproxy wget --progress=dot:mega -O \"$path\" \"$url\"
> 
> Did you try this with $path or $url containing $ or   or " or \ or ` or
> starting with - ?

No, I think I just hadn't thought very clearly enough about what you
meant.

> There are a fair few places in osstest where we're quite lax with this
> kind of thing, but (hopefully) only where the information definitely
> comes from the configuration (or some other trusted source).  A
> general helper like this ought to be robust against that kind of input
> (which may well mean failing, but it should not include potentially
> executing bits of the input or misinterpreting it as command line
> options to wget.
> 
> \Q may be of some help.

Really? I thought that escaped things at the Perl level, is that
sufficient for the shell stuff within the Perl too?

I suspect I just don't understand clearly enough what \Q actually does.

Ian.

  reply	other threads:[~2015-07-06 15:03 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-27 13:44 [PATCH OSSTEST v7 00/16] add distro domU testing flight Ian Campbell
2015-05-27 13:45 ` [PATCH OSSTEST v7 01/15] TestSupport: Add helper to fetch a URL on a host Ian Campbell
2015-07-06 14:48   ` Ian Jackson
2015-07-06 15:03     ` Ian Campbell [this message]
2015-07-06 15:59       ` Ian Jackson
2015-07-06 16:24         ` Ian Campbell
2015-05-27 13:45 ` [PATCH OSSTEST v7 02/15] distros: add support for installing Debian PV guests via d-i, flight and jobs Ian Campbell
2015-07-06 14:51   ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 03/15] distros: support booting Debian PV (d-i installed) guests with pvgrub Ian Campbell
2015-05-27 13:45 ` [PATCH OSSTEST v7 04/15] distros: Support pvgrub for Wheezy too Ian Campbell
2015-07-06 14:55   ` Ian Jackson
2015-07-06 15:06     ` Ian Campbell
2015-07-06 15:54       ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 05/15] distros: support PV guest install from Debian netinst media Ian Campbell
2015-07-06 15:01   ` Ian Jackson
2015-07-07  9:29     ` Ian Campbell
2015-05-27 13:45 ` [PATCH OSSTEST v7 06/15] Test pygrub and pvgrub on the regular flights Ian Campbell
2015-05-27 13:45 ` [PATCH OSSTEST v7 07/15] distros: add branch infrastructure Ian Campbell
2015-07-06 15:04   ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 08/15] distros: Run one suite per day on a weekly basis Ian Campbell
2015-07-06 15:05   ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 09/15] Debian: Handle lack of bootloader support in d-i on ARM Ian Campbell
2015-07-06 15:07   ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 10/15] ts-debian-di-install: Refactor root_disk specification Ian Campbell
2015-07-06 15:07   ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 11/15] make-flight: refactor PV debian tests Ian Campbell
2015-07-06 15:08   ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 12/15] Add testing of non-LVM/phy disk backends Ian Campbell
2015-07-06 15:21   ` Ian Jackson
2015-07-06 15:53     ` Ian Campbell
2015-07-06 16:01       ` Ian Jackson
2015-07-06 16:26         ` Ian Campbell
2015-07-06 16:40           ` Ian Campbell
2015-05-27 13:45 ` [PATCH OSSTEST v7 13/15] mfi-common: Allow make-*flight to filter the set of build jobs to include Ian Campbell
2015-07-06 15:22   ` Ian Jackson
2015-07-07  9:40     ` Ian Campbell
2015-07-07 10:38       ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 14/15] make-distros-flight: don't bother building for XSM or libvirt Ian Campbell
2015-07-06 15:22   ` Ian Jackson
2015-05-27 13:45 ` [PATCH OSSTEST v7 15/15] make-distros-flight: Use ftp.debian.org directly Ian Campbell
2015-07-06 15:23   ` Ian Jackson
2015-07-07  9:47     ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1436195001.25646.111.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.