]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bectl: push space-in-name check down into libbe
authorKyle Evans <kevans@FreeBSD.org>
Sun, 3 Apr 2022 02:04:31 +0000 (21:04 -0500)
committerKyle Evans <kevans@FreeBSD.org>
Wed, 6 Apr 2022 14:32:51 +0000 (09:32 -0500)
commit568f805c83954a044bcd29dbc7b037b617fab4b9
treed4ea6a5a1d1b69e55db85f2d0b26b11dc716828a
parent41e0b07a5e2a42cc2d6532ee529b6190bd14a69d
bectl: push space-in-name check down into libbe

This check was previously in `create` only, not applying to renames.  It
should really be applied at the libbe level, so that we can avoid
writing about this restriction over and over again.

While we're here: `bectl rename` always succeeds, even when it doesn't.
Start returning the error.

Approved by: re (gjb)
Reported By: Christian McDonald <cmcdonald netgate com>

(cherry picked from commit dadb9c70938c4ae2c260f6af65752c67ac752284)
(cherry picked from commit 227e52a9c0b0be9656757fec47a2648f5619bf67)
lib/libbe/be.c
sbin/bectl/bectl.c