All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Olaf Hering <olaf@aepfle.de>, xen-devel@lists.xen.org
Cc: Wei Liu <wei.liu2@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH] tools/hotplug: quote all variables in vif-bridge
Date: Tue, 24 Nov 2015 16:53:54 +0000	[thread overview]
Message-ID: <1448384034.26412.66.camel@citrix.com> (raw)
In-Reply-To: <1447921972-20481-1-git-send-email-olaf@aepfle.de>

On Thu, 2015-11-19 at 08:32 +0000, Olaf Hering wrote:
> Cosmetics: most of the variables used in vif-bridge are already quoted.
> Add quoting also to the remaining shell variables.
> 
> Signed-off-by: Olaf Hering <olaf@aepfle.de>

Acked-by: Ian Campbell <ian.campbell@citrix.com.

(I imagine much hilarity would ensue all over the place if a Linux netdev
actually had a name with a space in it...)

> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> Cc: Ian Campbell <ian.campbell@citrix.com>
> Cc: Wei Liu <wei.liu2@citrix.com>
> ---
>  tools/hotplug/Linux/vif-bridge | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tools/hotplug/Linux/vif-bridge b/tools/hotplug/Linux/vif-
> bridge
> index 3d72ca4..6956dea 100644
> --- a/tools/hotplug/Linux/vif-bridge
> +++ b/tools/hotplug/Linux/vif-bridge
> @@ -68,7 +68,7 @@ else
>  fi
>  
>  RET=0
> -ip link show dev $bridge 1>/dev/null 2>&1 || RET=1
> +ip link show dev "$bridge" 1>/dev/null 2>&1 || RET=1
>  if [ "$RET" -eq 1 ]
>  then
>      fatal "Could not find bridge device $bridge"
> @@ -77,7 +77,7 @@ fi
>  case "$command" in
>      online)
>          setup_virtual_bridge_port "$dev"
> -        set_mtu $bridge $dev
> +        set_mtu "$bridge" "$dev"
>          add_to_bridge "$bridge" "$dev"
>          ;;
>  
> @@ -88,7 +88,7 @@ case "$command" in
>  
>      add)
>          setup_virtual_bridge_port "$dev"
> -        set_mtu $bridge $dev
> +        set_mtu "$bridge" "$dev"
>          add_to_bridge "$bridge" "$dev"
>          ;;
>  esac

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

      reply	other threads:[~2015-11-24 16:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-19  8:32 [PATCH] tools/hotplug: quote all variables in vif-bridge Olaf Hering
2015-11-24 16:53 ` Ian Campbell [this message]

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=1448384034.26412.66.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=olaf@aepfle.de \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@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.