A 12 year old FreeBSD PR#168158 reports that the ZFS
sharenfs property does not parse correctly when there
is a '-' in a DNS host name.
This simple patch (based on the one in the PR authored
by Martin Birgmeier <Martin.Birgmiere@aon.at> fixes
the problem.
The only downside I can see w.r.t. this patch is that a
bogus set of options without any ',' or ' ' separating them,
works without the patch, but no longer works.
For example:
zfs set sharenfs='-ro-network=192.168.1.0-mask=255.255.255.0' example
works without the patch, but not with it.
Since zfsprops.7 specifies that ','s separate options, I do not think this
change is a problem.