Changeset 8afc51a


Ignore:
Timestamp:
11/07/13 10:11:37 (9 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
1e75537
Parents:
1fffaadd
Message:

Fix a bug with getZFSRelativePath, make sure we have a '/' at the start
of the pathname

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/libsh/functions.sh

    rbd99c30 r8afc51a  
    427427 
    428428   local _name="${_chkDir#${_mp}}" 
     429 
     430   # Make sure we have a '/' at the start of dataset 
     431   if [ "`echo ${_name} | cut -c 1`" != "/" ] ; then _name="/${_name}"; fi 
     432 
    429433   echo "${_name}" 
    430434   return 0 
Note: See TracChangeset for help on using the changeset viewer.