severity 718898 important reassign 718898 xen-utils-common thanks The behavior of the upstream GNU cut has changed. It is no longer allows the usage of cutting lines as fields by setting a newline as the delimiter. This has broken /etc/xen/scripts/vif-bridge which uses it in this way.
This was originally reported by Volker Klasen against the coreutils
package. However with the information that this is an intentional
behavior change upstream in order to address other problems and with
the use being problematic I am reassigning this to the
xen-utils-common which owns the /etc/xen/scripts/vif-bridge script.
Here is a patch that I believe should fix the problem. I will also
attach it so that there won't be any mailer problems with the
transport of it.
--- vif-bridge.orig 2013-08-07 20:01:57.240366430 -0600
+++ vif-bridge 2013-08-07 20:03:06.664895507 -0600
@@ -37,8 +37,7 @@
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
However although this is an exact replacement for the previous cut
behavior I am worried that the output of 'brctl show' will always
produce only one line of output. If there are multiple bridges this
will behave exactly as before and will only extract the first one.
Thank you for maintaining xen-utils-common!
Bob
--- vif-bridge.orig 2013-08-07 20:01:57.240366430 -0600
+++ vif-bridge 2013-08-07 20:03:06.664895507 -0600
@@ -37,8 +37,7 @@
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
signature.asc
Description: Digital signature

