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.
This commit is contained in:
Lachlan McIlroy
2006-07-08 04:23:04 +00:00
parent 30746979d6
commit 808e1903f7
+1 -1
View File
@@ -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 }
'