Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

of the pathname
  • Loading branch information...
commit 8afc51a15ac728d3fded3c054141c9ee87cc0269 1 parent 1fffaad
@kmoore134 kmoore134 authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src-sh/libsh/functions.sh
View
4 src-sh/libsh/functions.sh
@@ -426,6 +426,10 @@ getZFSRelativePath() {
if [ -z "${_tank}" ] ; then return 1 ; fi
local _name="${_chkDir#${_mp}}"
+
+ # Make sure we have a '/' at the start of dataset
+ if [ "`echo ${_name} | cut -c 1`" != "/" ] ; then _name="/${_name}"; fi
+
echo "${_name}"
return 0
}
Please sign in to comment.
Something went wrong with that request. Please try again.