[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] vif-bridge: fix cut behavior change



On Fri, 2013-08-09 at 01:18 -0600, Bob Proulx wrote:
> A recent change in GNU cut disallows use of a newline as a field
> delimiter.  Avoid the problematic use of cut in vif-bridge.
> 
> Signed-off-by: Bob Proulx <bob@xxxxxxxxxx>

Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

Both of the committers who generally deal with toolside stuff are away
(at debconf) at the moment, but this is on my list to deal with when I
get back.

Cheers,
Ian.

> ---
>  tools/hotplug/Linux/vif-bridge | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/tools/hotplug/Linux/vif-bridge b/tools/hotplug/Linux/vif-bridge
> index f489519..9a6f82a 100644
> --- a/tools/hotplug/Linux/vif-bridge
> +++ b/tools/hotplug/Linux/vif-bridge
> @@ -37,8 +37,7 @@ bridge=$(xenstore_read_default "$XENBUS_PATH/bridge" 
> "$bridge")
>  
>  if [ -z "$bridge" ]
>  then
> -  bridge=$(brctl show | cut -d "
> -" -f 2 | cut -f 1)
> +  bridge=$(brctl show | awk 'NR==2{print$1}')
>  
>    if [ -z "$bridge" ]
>    then



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.