From 808e1903f75e667bac393d65ee8173b9ac705e58 Mon Sep 17 00:00:00 2001 From: Lachlan McIlroy Date: Sat, 8 Jul 2006 04:23:04 +0000 Subject: [PATCH] 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. --- common.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } ' -- 2.47.3