[PC-BSD Commits] r20917 - pcbsd/current/src-sh/libsh

svn at pcbsd.org svn at pcbsd.org
Wed Jan 9 12:16:07 PST 2013


Author: kris
Date: 2013-01-09 20:16:07 +0000 (Wed, 09 Jan 2013)
New Revision: 20917

Modified:
   pcbsd/current/src-sh/libsh/functions.sh
Log:

Fix a bug detecting the proper ZFS pool / tank for a directory



Modified: pcbsd/current/src-sh/libsh/functions.sh
===================================================================
--- pcbsd/current/src-sh/libsh/functions.sh	2013-01-09 20:14:23 UTC (rev 20916)
+++ pcbsd/current/src-sh/libsh/functions.sh	2013-01-09 20:16:07 UTC (rev 20917)
@@ -169,8 +169,8 @@
   local _chkDir="$1"
   while :
   do
-     line=`mount | grep -w -e $_chkDir -e "(zfs,"`
-     mount | grep -qw -e $_chkDir -e "(zfs,"
+     line=`mount | grep -we "$_chkDir" | grep -e "(zfs,"`
+     mount | grep -we "$_chkDir" | grep -q -e "(zfs,"
      if [ $? -eq 0 ] ; then
         echo $line | cut -d '/' -f -1 | awk '{print $1}'
         return 0



More information about the Commits mailing list