freebsd-skq/lib/libbe
kevans 3c7e957126 libbe(3): Impose dataset length restrictions on boot env name validation
Previously, we only validated names for character restrictions. This is
helpful, but we should've also checked length restrictions- dataset names
must be restricted to MAXNAMELEN.

While here, move validation before doing a bunch of concatenations and fix
error handling in be_rename. It was previously setting the error state based
on return value from a libzfs function, which is wrong: libzfs errors don't
necessarily match cleanly to libbe errors. This would cause the assertion in
be_error to hit when the error was printed.
2018-08-16 18:58:34 +00:00
..
be_access.c libbe(3): Prefer safer versions of strcat/strcpy 2018-08-16 18:37:47 +00:00
be_error.c libbe(3): More error handling bits 2018-08-10 21:23:56 +00:00
be_impl.h libbe(3)/bectl(8): Hit rewind on a bunch of off-by-ones 2018-08-16 17:56:03 +00:00
be_info.c libbe(3)/bectl(8): Standardize $FreeBSD$ IDs 2018-08-07 14:02:41 +00:00
be.c libbe(3): Impose dataset length restrictions on boot env name validation 2018-08-16 18:58:34 +00:00
be.h libbe(3)/bectl(8): Kill off the 'add' functionality for now 2018-08-11 01:02:27 +00:00
libbe.3 libbe(3): Impose dataset length restrictions on boot env name validation 2018-08-16 18:58:34 +00:00