From: Ian Campbell Subject: Re: [PATCH] vif-bridge: fix cut behavior change Date: Tue, 13 Aug 2013 21:21:57 +0100 Message-ID: <1376425317.9273.22.camel@hastur.hellion.org.uk> References: <1376032699-9869-1-git-send-email-bob@proulx.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1376032699-9869-1-git-send-email-bob@proulx.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Bob Proulx Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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 Acked-by: Ian Campbell 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