From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQGpT-0007q0-62 for qemu-devel@nongnu.org; Wed, 19 Mar 2014 09:46:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQGpO-0007mX-5l for qemu-devel@nongnu.org; Wed, 19 Mar 2014 09:46:47 -0400 Received: from lputeaux-656-01-25-125.w80-12.abo.wanadoo.fr ([80.12.84.125]:56321 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQGpN-0007mP-Va for qemu-devel@nongnu.org; Wed, 19 Mar 2014 09:46:42 -0400 Date: Wed, 19 Mar 2014 14:46:41 +0100 From: =?iso-8859-1?Q?Beno=EEt?= Canet Message-ID: <20140319134641.GC3019@irqsave.net> References: <048598424eaf37233be9b0b091fd9ea0d41fa285.1395105370.git.jcody@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <048598424eaf37233be9b0b091fd9ea0d41fa285.1395105370.git.jcody@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 3/4] block: qemu-iotests - fix image cleanup when using spaced pathnames List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jeff Cody Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com The Monday 17 Mar 2014 =E0 21:24:39 (-0400), Jeff Cody wrote : > The _rm_test_img() function in common.rc did not quote the image > file, which left droppings in the scratch directory (and performed > a potentially unsafe rm -f). >=20 > This adds the necessary quotes. >=20 > Signed-off-by: Jeff Cody > --- > tests/qemu-iotests/common.rc | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.r= c > index 881079b..6b13a45 100644 > --- a/tests/qemu-iotests/common.rc > +++ b/tests/qemu-iotests/common.rc > @@ -178,10 +178,10 @@ _rm_test_img() > local img=3D$1 > if [ "$IMGFMT" =3D "vmdk" ]; then > # Remove all the extents for vmdk > - $QEMU_IMG info $img 2>/dev/null | grep 'filename:' | cut -f 2 = -d: \ > + "$QEMU_IMG" info "$img" 2>/dev/null | grep 'filename:' | cut -= f 2 -d: \ > | xargs -I {} rm -f "{}" > fi > - rm -f $img > + rm -f "$img" > } > =20 > _cleanup_test_img() > --=20 > 1.8.3.1 >=20 >=20 Reviewed-by: Benoit Canet