From: Lachlan McIlroy Date: Sat, 8 Jul 2006 04:23:04 +0000 (+0000) Subject: In _xfs_mounted, add quotes around the grep expression to prevent partial matches. X-Git-Tag: v1.1.0~611 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=808e1903f75e667bac393d65ee8173b9ac705e58;p=xfstests-dev.git In _xfs_mounted, add quotes around the grep expression to prevent partial matches. Merge of master-melb:xfs-cmds:26491a by kenmcd. In _xfs_mounted, add quotes around the grep expression to prevent partial matches. --- diff --git a/common.rc b/common.rc index 67c2488d..d3c2a0c0 100644 --- a/common.rc +++ b/common.rc @@ -635,7 +635,7 @@ _xfs_mounted() device=$1 - if _mount | grep $device | $AWK_PROG ' + if _mount | grep "$device " | $AWK_PROG ' /type xfs/ { print $3 ; exit 0 } END { exit 1 } '