]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libbe(3): use libzfs name validation for datasets/snapshot names
authorkevans <kevans@FreeBSD.org>
Wed, 10 Apr 2019 14:00:03 +0000 (14:00 +0000)
committerkevans <kevans@FreeBSD.org>
Wed, 10 Apr 2019 14:00:03 +0000 (14:00 +0000)
commit092bc938ad2b05496cac53e838796374569a22ef
treeafb5dc90590a5ce88b431eb420c2ff4f8ac43e47
parent44d1b4293133694cdf3d07ed792c7514d78cf6f1
libbe(3): use libzfs name validation for datasets/snapshot names

Our home-rolled solution didn't quite capture all of the details, and we
didn't actually validate snapshot names at all. zfs_name_valid captures the
important details, but it doesn't necessarily expose the errors that we're
wanting to see in the be_validate_* functions. Validating lengths
independently, then the names, should make this a non-issue.
lib/libbe/be.c